-
Notifications
You must be signed in to change notification settings - Fork 1
Description
I'm submitting a ...
[ ] bug report
[x] feature request
[ ] question about the decisions made in the repository
[ ] question about how to use this project
Summary
When creating an editor instance, the monaco-editor library will use the monaco-loader configuration to fetch the Javascript files for the workers started by the editor (and any other required resource).
By default, monaco-loader is configured to fetch such resources from a CDN (refer to Screenshot A) but, it can be configured to fetch from specific path or by including monaco-editor in your final bundle.
Requested Feature
Provide an InjectionToken for users to configure the loader and run loader.config(...) before running loader.init(...) in the APP_INITIALIZER.
E.g.:
{
provide: NGX_MONACO_LOADER_CONFIG,
useValue: {
paths: {
vs: '...',
},
'vs/nls' : {
availableLanguages: {
'*': 'de',
},
},
}Other information
Screenshot A (no config, using CDN)

Screenshot B (configured loader, fetched from the application server)
