feat(bundle): add module bundle

This commit is contained in:
moklick
2019-10-08 21:20:22 +02:00
parent b0949144d3
commit 1377a42f41
4 changed files with 9578 additions and 0 deletions
+27
View File
@@ -49,6 +49,33 @@ export default [{
}
},
plugins
}, {
input: 'src/index.js',
external,
onwarn,
output: {
name: 'ReactFlow',
file: pkg.module,
format: 'es',
sourcemap: isProd,
globals: {
react: 'React',
'react-dom': 'ReactDOM',
'prop-types': 'PropTypes'
}
},
plugins: [
bundleSize(),
postcss(),
resolve(),
babel({
exclude: 'node_modules/**'
}),
commonjs({
include: /node_modules/
}),
svg()
]
}];
// }, {