Minor Changes
-
#4264
227f5baThanks @trevor-scheer! - Add./monaco-editorto theexportsmap.monaco-graphql/monaco-editorre-exportsmonaco-editorwith only the graphql and json languages, skipping the css, html, and typescript contributions that the defaultmonaco-editorentry point bundles. Consumers can use it to share a singlemonaco-editorinstance withmonaco-graphql(foreditor,Uri,KeyMod,KeyCode,languages, etc.) without paying for those extras. Until now you had to reach for the unstablemonaco-graphql/esm/monaco-editorpath, which only resolves under legacynode10-style module resolution.The legacy
monaco-graphql/esm/monaco-editorpath still works via the existing./*wildcard, so this change is purely additive.The
monaco-graphql/esm/*import pattern is now considered deprecated. It will continue to work throughout the1.xline, but the wildcardexportsentry that enables it is planned for removal in the next major version. New code should prefer the canonical paths:monaco-graphql/monaco-editor,monaco-graphql/initializeMode,monaco-graphql/graphql.worker, andmonaco-graphql/lite.