microsoft / microsoft/monaco-editor
Monaco-editor 0.55 generated bundle file larger than 6MB
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 Link
No response
Monaco Editor Playground Code
Reproduction Steps
No response
Actual (Problematic) Behavior
No response
Expected Behavior
No response
Additional Context
Following this https://github.com/microsoft/monaco-editor/tree/main/samples/browser-esm-webpack-monaco-plugin, update the monaco-editor version to latest 0.55.1 and run npm run build.
Generated bundle:
Assets:
editor.worker.js (276 KiB)
css.worker.js (1.01 MiB)
ts.worker.js (6.68 MiB)
main.bundle.js (3.88 MiB)
865.bundle.js (6.41 MiB) - which does not exist if using 0.54. It contains TypeScript compiler from typescriptServices.js. This one is very large. Is this needed?
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
Start in samples/browser-esm-webpack-monaco-plugin and run npm run build with monaco-editor 0.54 and 0.55.1. Compare the generated assets, especially 865.bundle.js, and inspect its typescriptServices.js contents. Determine whether that bundle is required and document the expected generated output or size behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript, webpack
- Domain
- build-system, performance
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100