Microsoft/monaco-editor
View on GitHub[Bug] Many duplicates in minified tsWorker.js leading to large file
Open
#4184 opened on Sep 22, 2023
debthelp wanted
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
Reproduction Steps
- Open a compiled version of the file min/vs/language/typescript/tsWorker.min.js CDN Example
- Optionally copy the code in a VS Code window
- Search for
interface CanvasDrawPath { - Note that the definition is found twice
- This duplication issue is the case for a lot of code
Actual (Problematic) Behavior
The minified version of tsWorker.js is around 4.6 MB I want to use the Monaco editor in a web extension, but this allows a maximum file size of 4 MB
If the code duplication is fixed, that would reduce the filesize enough to get below 4 MB
Expected Behavior
No duplicate code generated during the build
Additional Context
Related Add_ons Linter issue https://github.com/mozilla/addons-linter/issues/3915