Skip to content

Commit 2d60530

Browse files
committed
transform only editor.main.js
BREAKING CHANGES: if a project contains only these imports for creating editor: ``` import * as monaco from 'monaco-editor/esm/vs/editor/editor.api.js'; const editor = monaco.editor.create(...); ``` `monaco-editor-webpack-plugin` will not add features and languages. When creating editor, monaco must be imported from package itself: ``` import * as monaco from 'monaco-editor'; const editor = monaco.editor.create(...); ```
1 parent 82b5487 commit 2d60530

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webpack-plugin/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ function createLoaderRules(
313313
};
314314
return [
315315
{
316-
test: /esm[/\\]vs[/\\]editor[/\\]editor.(api|main).js/,
316+
test: /esm[/\\]vs[/\\]editor[/\\]editor.main.js/,
317317
use: [
318318
{
319319
loader: INCLUDE_LOADER_PATH,

0 commit comments

Comments
 (0)