Skip to content

Commit cba92da

Browse files
committed
Simplify rollup config for commonjs, let it decide
1 parent 2edc4c6 commit cba92da

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

rollup.config.js

+5-7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ import ts from 'rollup-plugin-ts'
22
import nodeResolve from '@rollup/plugin-node-resolve'
33
import commonjs from '@rollup/plugin-commonjs'
44

5+
// These two transient dependencies are still CommonJS:
6+
// 'node_modules/emoji-regex/index.js',
7+
// 'node_modules/eastasianwidth/eastasianwidth.js'
8+
59
const output = {
610
format: 'cjs',
711
file: './build/index.cjs',
@@ -16,12 +20,6 @@ export default {
1620
plugins: [
1721
ts({ /* options */ }),
1822
nodeResolve(),
19-
commonjs({
20-
include: [
21-
// These two transient dependencies are still CommonJS
22-
'node_modules/emoji-regex/index.js',
23-
'node_modules/eastasianwidth/eastasianwidth.js'
24-
]
25-
})
23+
commonjs()
2624
]
2725
}

0 commit comments

Comments
 (0)