Skip to content

Commit

Permalink
Fix UMD build
Browse files Browse the repository at this point in the history
  • Loading branch information
sanniassin committed May 22, 2018
1 parent 96be233 commit 0a450bb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .size-snapshot.json
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
12 changes: 9 additions & 3 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
]
},

{
Expand All @@ -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
Expand Down

0 comments on commit 0a450bb

Please sign in to comment.