|
|
@ -92,7 +92,7 @@ function createLoaderRules(languages, features, workers, publicPath) {
|
|
|
|
const globals = {
|
|
|
|
const globals = {
|
|
|
|
'MonacoEnvironment': `(function (paths) {
|
|
|
|
'MonacoEnvironment': `(function (paths) {
|
|
|
|
function stripTrailingSlash(str) {
|
|
|
|
function stripTrailingSlash(str) {
|
|
|
|
return str.replace(/\/$/, '');
|
|
|
|
return str.replace(/\\/$/, '');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
getWorkerUrl: function (moduleId, label) {
|
|
|
|
getWorkerUrl: function (moduleId, label) {
|
|
|
|