fix(rollup): use named export

This commit is contained in:
moklick
2019-10-08 23:51:03 +02:00
parent 722ecd75a8
commit 13391afc06
+2 -1
View File
@@ -44,6 +44,7 @@ export default [{
file: pkg.browser, file: pkg.browser,
format: 'umd', format: 'umd',
sourcemap: isProd, sourcemap: isProd,
exports: 'named',
globals: { globals: {
react: 'React' react: 'React'
} }
@@ -55,7 +56,7 @@ export default [{
onwarn, onwarn,
output: { output: {
file: pkg.module, file: pkg.module,
format: 'esm', format: 'esm'
}, },
plugins: [ plugins: [
bundleSize(), bundleSize(),