Skip to content

Commit 788996f

Browse files
committed
fix: Fix esm loading from commonjs dependency
1 parent 30e6798 commit 788996f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

rollup.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ export default rollup.defineConfig({
7575
nodeResolve({
7676
extensions
7777
}),
78-
commonjs(),
78+
commonjs({
79+
esmExternals: (id) => id.match(/^monaco-editor(\/.*)?/) != null // required for monaco-emacs with use import monaco-editor esm code from commonjs code
80+
}),
7981
babel({
8082
extensions,
8183
presets: [

0 commit comments

Comments
 (0)