diff --git a/.size-snapshot.json b/.size-snapshot.json index 246326e..55c0b23 100644 --- a/.size-snapshot.json +++ b/.size-snapshot.json @@ -1,8 +1,8 @@ { "dist/react-input-mask.js": { - "bundled": 38979, - "minified": 14100, - "gzipped": 4920 + "bundled": 37946, + "minified": 13841, + "gzipped": 4857 }, "lib/react-input-mask.development.js": { "bundled": 33751, diff --git a/rollup.config.js b/rollup.config.js index 78d7d95..75875a0 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -46,10 +46,16 @@ export default [ file: 'dist/react-input-mask.js', format: 'umd', name: 'ReactInputMask', - globals: { react: 'React' } + globals: { 'react': 'React', 'react-dom': 'ReactDOM' } }, external, - plugins: [...plugins, sizeSnapshot()] + plugins: [ + ...plugins, + replace({ + 'process.env.NODE_ENV': '"development"' + }), + sizeSnapshot() + ] }, { @@ -58,7 +64,7 @@ export default [ file: 'dist/react-input-mask.min.js', format: 'umd', name: 'ReactInputMask', - globals: { react: 'React' } + globals: { 'react': 'React', 'react-dom': 'ReactDOM' } }, external, plugins: minifiedPlugins