monaco-graphql
monaco import bundles all basic languages
#2672
Labels
monaco-graphql
monaco import bundles all basic languages
#2672
The
monaco-graphql
package has the following import at multiple places:import * as monaco from 'monaco-editor'
This import loads
monaco-editor/esm/vs/editor/editor.main.js
which in turn loads../basic-languages/monaco.contribution
which contains many of the "basic languages" supported by monaco.When importing this language plugin, also only
initializeMode
like shown in the examples, all these languages are bundled. (see this minimal example using vite: https://github.com/lokmeinmatz/monaco-graphql-lang-bundles , the stats.html is generated and shows the import dependencies).I don't have the time or expertise to create a Pull request, but is it possible to change all these imports to
import * as monaco from 'monaco-editor/esm/vs/editor/editor.api';
?Thanks, Matthias
The text was updated successfully, but these errors were encountered: