From d4a67a10dec9691bb505eaef65cfbb85034470b4 Mon Sep 17 00:00:00 2001 From: Erhan Gundogan Date: Sun, 15 Nov 2020 11:28:33 +0100 Subject: [PATCH] change rollup format --- package.json | 2 +- rollup.config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index b11a5c0..b9b6660 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@imagemarker/use-text-width", - "version": "0.3.1", + "version": "0.3.2", "description": "React hook to measure text width", "repository": "github:imagemarker/use-text-width", "keywords": [ diff --git a/rollup.config.js b/rollup.config.js index b0f1691..d103de4 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -12,7 +12,7 @@ export default { dir: 'dist', name: 'useTextWidth', sourcemap: !production, - format: 'cjs', + format: 'es', globals: { 'react': 'React', 'react-dom': 'ReactDOM',