Closed cdietrich closed 9 months ago
The core combination of monaco-editor & vscode is the bare minimum, but all non-mandatory service are loaded as dynamic imports and therefore only if you configure them.
npm run build
creates a production bundle with vite/rollup for both packages. The bundle is contained in both npm packages and exported.
so there is no chance to get below the 8MB
That is the price for having the real vscode api compared to the re-implemented and incomplete vscode api monaco-languageclient had in the past. Splitting the extension hosts up further did not work so far: https://github.com/CodinGame/monaco-vscode-api/issues/136
If you don't need the languageclient then of course it is always the option to stick with pure monaco-editor.
Bundles have become smaller, but we need to rely on @codingame/monaco-vscode-api
.
Hi, has someone experimented bundling (am using create-react-app) without vscode to reduce bundle size?