fix(rollup): use named export
This commit is contained in:
+2
-1
@@ -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(),
|
||||||
|
|||||||
Reference in New Issue
Block a user