mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 07:00:11 +01:00
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(...); ```
This commit is contained in:
parent
82b5487f2b
commit
2d605304f5
1 changed files with 1 additions and 1 deletions
|
|
@ -313,7 +313,7 @@ function createLoaderRules(
|
|||
};
|
||||
return [
|
||||
{
|
||||
test: /esm[/\\]vs[/\\]editor[/\\]editor.(api|main).js/,
|
||||
test: /esm[/\\]vs[/\\]editor[/\\]editor.main.js/,
|
||||
use: [
|
||||
{
|
||||
loader: INCLUDE_LOADER_PATH,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue