mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 15:05:39 +01:00
Change metadata format
This commit is contained in:
parent
a6e0092cd1
commit
e76aa16381
3 changed files with 32 additions and 22 deletions
|
|
@ -10,17 +10,17 @@
|
|||
|
||||
function resolveCorePath(core) {
|
||||
if (loadDevEditor()) {
|
||||
return core.srcPath;
|
||||
return core.paths.dev;
|
||||
} else {
|
||||
return '/monaco-editor/' + core.path;
|
||||
return '/monaco-editor/' + core.paths.npm;
|
||||
}
|
||||
}
|
||||
|
||||
function resolvePluginPath(plugin) {
|
||||
if (plugin.srcPath && getQueryStringValue(plugin.name) === 'dev') {
|
||||
return plugin.srcPath;
|
||||
if (plugin.paths.dev && getQueryStringValue(plugin.name) === 'dev') {
|
||||
return plugin.paths.dev;
|
||||
} else {
|
||||
return '/monaco-editor/' + plugin.path;
|
||||
return '/monaco-editor/' + plugin.paths.npm;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue