mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 16:15:41 +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
|
|
@ -18,6 +18,7 @@
|
||||||
rootPath: './out/release/typescript',
|
rootPath: './out/release/typescript',
|
||||||
paths: {
|
paths: {
|
||||||
// use ./ to indicate it is relative to the `rootPath`
|
// use ./ to indicate it is relative to the `rootPath`
|
||||||
|
src: './../../amd/typescript',
|
||||||
dev: './dev',
|
dev: './dev',
|
||||||
min: './min',
|
min: './min',
|
||||||
esm: './esm'
|
esm: './esm'
|
||||||
|
|
@ -30,6 +31,7 @@
|
||||||
rootPath: './out/release/css',
|
rootPath: './out/release/css',
|
||||||
paths: {
|
paths: {
|
||||||
// use ./ to indicate it is relative to the `rootPath`
|
// use ./ to indicate it is relative to the `rootPath`
|
||||||
|
src: './../../amd/css',
|
||||||
dev: './dev',
|
dev: './dev',
|
||||||
min: './min',
|
min: './min',
|
||||||
esm: './esm'
|
esm: './esm'
|
||||||
|
|
@ -42,6 +44,7 @@
|
||||||
rootPath: './out/release/json',
|
rootPath: './out/release/json',
|
||||||
paths: {
|
paths: {
|
||||||
// use ./ to indicate it is relative to the `rootPath`
|
// use ./ to indicate it is relative to the `rootPath`
|
||||||
|
src: './../../amd/json',
|
||||||
dev: './dev',
|
dev: './dev',
|
||||||
min: './min',
|
min: './min',
|
||||||
esm: './esm'
|
esm: './esm'
|
||||||
|
|
@ -54,6 +57,7 @@
|
||||||
rootPath: './out/release/html',
|
rootPath: './out/release/html',
|
||||||
paths: {
|
paths: {
|
||||||
// use ./ to indicate it is relative to the `rootPath`
|
// use ./ to indicate it is relative to the `rootPath`
|
||||||
|
src: './../../amd/html',
|
||||||
dev: './dev',
|
dev: './dev',
|
||||||
min: './min',
|
min: './min',
|
||||||
esm: './esm'
|
esm: './esm'
|
||||||
|
|
@ -66,6 +70,7 @@
|
||||||
rootPath: './out/release/basic-languages',
|
rootPath: './out/release/basic-languages',
|
||||||
paths: {
|
paths: {
|
||||||
// use ./ to indicate it is relative to the `rootPath`
|
// use ./ to indicate it is relative to the `rootPath`
|
||||||
|
src: './../../amd/basic-languages',
|
||||||
dev: './dev',
|
dev: './dev',
|
||||||
min: './min',
|
min: './min',
|
||||||
esm: './esm'
|
esm: './esm'
|
||||||
|
|
|
||||||
|
|
@ -207,6 +207,18 @@
|
||||||
|
|
||||||
loadScript(RESOLVED_CORE.getResolvedPath(PATH_PREFIX) + '/loader.js', function () {
|
loadScript(RESOLVED_CORE.getResolvedPath(PATH_PREFIX) + '/loader.js', function () {
|
||||||
let loaderPathsConfig = {};
|
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()) {
|
if (!RESOLVED_CORE.isRelease()) {
|
||||||
RESOLVED_PLUGINS.forEach(function (plugin) {
|
RESOLVED_PLUGINS.forEach(function (plugin) {
|
||||||
plugin.generateLoaderConfig(loaderPathsConfig, PATH_PREFIX);
|
plugin.generateLoaderConfig(loaderPathsConfig, PATH_PREFIX);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue