Skip to content

Commit 2445323

Browse files
Fix TypeError on Node 18+ by bundling ESM-only 'open' package
1 parent 83f76bb commit 2445323

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

rollup.config.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { babel } from '@rollup/plugin-babel'
2+
import resolve from '@rollup/plugin-node-resolve'
23
import typescript from 'rollup-plugin-typescript2'
34

45
export default {
@@ -10,6 +11,7 @@ export default {
1011
exports: 'none'
1112
}],
1213
plugins: [
14+
resolve(),
1315
typescript(),
1416
babel({ babelHelpers: 'bundled' })
1517
],
@@ -21,7 +23,6 @@ export default {
2123
'http',
2224
'os',
2325
'path',
24-
'open',
2526
'yargs'
2627
]
2728
}

0 commit comments

Comments
 (0)