Skip to content

Commit 3902964

Browse files
committed
Improve rollup config to avoid possible build confusion
1 parent 1fa01cb commit 3902964

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rollup.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ module.exports = [
9090
resolve(ROOT, pkg.main),
9191
env === 'production'
9292
),
93+
exports: 'default',
9394
format: 'cjs',
9495
sourcemap: env === 'production', // create sourcemap for error reporting in production mode
9596
},
@@ -98,6 +99,7 @@ module.exports = [
9899
resolve(ROOT, pkg.module),
99100
env === 'production'
100101
),
102+
exports: 'default',
101103
format: 'es',
102104
sourcemap: env === 'production', // create sourcemap for error reporting in production mode
103105
},

0 commit comments

Comments
 (0)