Skip to content

Commit 339c031

Browse files
committed
chore: update rollup config
1 parent a9fa338 commit 339c031

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

rollup.config.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,21 @@ export default {
1414
file: pkg.main,
1515
format: 'cjs',
1616
sourcemap: true,
17+
plugins: [terser()],
18+
exports: 'auto',
1719
},
1820
{
1921
file: pkg.module,
2022
format: 'es',
2123
sourcemap: true,
24+
plugins: [terser()],
25+
exports: 'auto',
26+
},
27+
{
28+
file: 'dist/index.js',
29+
format: 'cjs',
30+
sourcemap: true,
31+
exports: 'auto',
2232
},
2333
],
2434
watch: {
@@ -43,6 +53,5 @@ export default {
4353
commonjs(),
4454
// Resolve source maps to the original source
4555
sourceMaps(),
46-
terser({ include: [/^.+\.min\.js$/, '*.es.*'] }),
4756
],
4857
};

0 commit comments

Comments
 (0)