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:
ValeraS 2022-02-04 01:39:47 +03:00
parent 82b5487f2b
commit 2d605304f5

View file

@ -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,