-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
monaco-editor/esm/vs/editor/editor.api
is transformed into cjs
instead of esm
any more
#2735
Comments
@JounQin I'm sorry, I don't understand, what do you mean? |
@alexdima This plugin transforms original monaco-editor ESM into commonjs format related to the mentioned source code. |
@JounQin I know what ESM is, I know what commonjs is, but I still don't understand what your issue is. Can you please provide clear steps, and then explain what is happening compared to what you would expect to happen? |
@alexdima Angular reports warning about cjs usage because the source code of this plugin is using https://github.com/microsoft/monaco-editor-webpack-plugin/blob/master/src/loaders/include.ts#L18 I'd expect providing an option to use |
I tested a fix on a fork which seems to work : titouanmathis@424abe7 Tests are ok when I run them, maybe someone else could confirm? |
With regards to the common js usage warnings, it seems that MonacoEditorWebpackPlugin is augmenting the source of Monaco Editor and adding CJS modules.
monaco-editor/webpack-plugin/src/loaders/include.ts
Lines 29 to 36 in a5298e1
The text was updated successfully, but these errors were encountered: