microsoft / microsoft/monaco-editor
[Bug] When using monaco-editor with webpack-plugin, webpack bundles all features and languages
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 46.8k
- Forks
- 4.1k
- Avg merge
- 17h 58m
- Merged PRs (30d)
- 1
Description
Reproducible in vscode.dev or in VS Code Desktop?
- Not reproducible in vscode.dev or VS Code Desktop
Reproducible in the monaco editor playground?
- Not reproducible in the monaco editor playground
Monaco Editor Playground Code
No response
Actual Behavior
when using monaco-editor like this:
import {editor} from 'monaco-editor';
and bundle code with webpack and monaco-editor-weback-plugin, webpack bundles all features and languages.
Plugin correctly works if use import from editor.api.js:
import {editor} from 'monaco-editor/esm/vs/editor/editor.api'
But that behavior also unexpected.
Expected Behavior
should bundle only features and languages specified in plugin options
Additional Context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No repository files or tests are named. Start by comparing the monaco-editor entry point with monaco-editor/esm/vs/editor/editor.api and inspect how monaco-editor-webpack-plugin applies its options. Confirm the bundle contains only the configured features and languages, while preserving the documented import behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, webpack
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100