mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 07:00:11 +01:00
Add support to run from source using tsc -w
This commit is contained in:
parent
22c629374e
commit
8f2bc4ac98
2 changed files with 17 additions and 0 deletions
|
|
@ -207,6 +207,18 @@
|
|||
|
||||
loadScript(RESOLVED_CORE.getResolvedPath(PATH_PREFIX) + '/loader.js', function () {
|
||||
let loaderPathsConfig = {};
|
||||
window.AMD = true;
|
||||
if (IS_FILE_PROTOCOL) {
|
||||
loaderPathsConfig['vs/language/fillers/monaco-editor-core'] =
|
||||
DIRNAME + '/.././out/amd/fillers/monaco-editor-core-amd';
|
||||
loaderPathsConfig['vs/fillers/monaco-editor-core'] =
|
||||
DIRNAME + '/.././out/amd/fillers/monaco-editor-core-amd';
|
||||
} else {
|
||||
loaderPathsConfig['vs/language/fillers/monaco-editor-core'] =
|
||||
PATH_PREFIX + '/monaco-editor/./out/amd/fillers/monaco-editor-core-amd';
|
||||
loaderPathsConfig['vs/fillers/monaco-editor-core'] =
|
||||
PATH_PREFIX + '/monaco-editor/./out/amd/fillers/monaco-editor-core-amd';
|
||||
}
|
||||
if (!RESOLVED_CORE.isRelease()) {
|
||||
RESOLVED_PLUGINS.forEach(function (plugin) {
|
||||
plugin.generateLoaderConfig(loaderPathsConfig, PATH_PREFIX);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue