microsoft / microsoft/monaco-editor

Monaco-editor 0.55 generated bundle file larger than 6MB

Open
#5,154 0 comments 7 reactions 0 assignees View on GitHub

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?
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.