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',