Skip to content

Commit

Permalink
Simplify rollup config for commonjs, let it decide
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowspawn committed May 25, 2023
1 parent 2edc4c6 commit cba92da
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions rollup.config.js
Expand Up @@ -2,6 +2,10 @@ import ts from 'rollup-plugin-ts'
import nodeResolve from '@rollup/plugin-node-resolve'
import commonjs from '@rollup/plugin-commonjs'

// These two transient dependencies are still CommonJS:
// 'node_modules/emoji-regex/index.js',
// 'node_modules/eastasianwidth/eastasianwidth.js'

const output = {
format: 'cjs',
file: './build/index.cjs',
Expand All @@ -16,12 +20,6 @@ export default {
plugins: [
ts({ /* options */ }),
nodeResolve(),
commonjs({
include: [
// These two transient dependencies are still CommonJS
'node_modules/emoji-regex/index.js',
'node_modules/eastasianwidth/eastasianwidth.js'
]
})
commonjs()
]
}

0 comments on commit cba92da

Please sign in to comment.