We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9fa338 commit 339c031Copy full SHA for 339c031
rollup.config.js
@@ -14,11 +14,21 @@ export default {
14
file: pkg.main,
15
format: 'cjs',
16
sourcemap: true,
17
+ plugins: [terser()],
18
+ exports: 'auto',
19
},
20
{
21
file: pkg.module,
22
format: 'es',
23
24
25
26
+ },
27
+ {
28
+ file: 'dist/index.js',
29
+ format: 'cjs',
30
+ sourcemap: true,
31
32
33
],
34
watch: {
@@ -43,6 +53,5 @@ export default {
43
53
commonjs(),
44
54
// Resolve source maps to the original source
45
55
sourceMaps(),
46
- terser({ include: [/^.+\.min\.js$/, '*.es.*'] }),
47
56
48
57
};
0 commit comments