web: fix module name not quoted
This commit is contained in:
parent
4745fc2595
commit
52456165ce
2
doric-web/dist/index.js
vendored
2
doric-web/dist/index.js
vendored
@ -8440,7 +8440,7 @@ var doric_web = (function (exports, axios, sandbox) {
|
||||
document.body.appendChild(scriptElement);
|
||||
}
|
||||
function packageModuleScript(name, content) {
|
||||
return `Reflect.apply(doric.jsRegisterModule,this,[${name},Reflect.apply(function(__module){(function(module,exports,require,setTimeout,setInterval,clearTimeout,clearInterval){
|
||||
return `Reflect.apply(doric.jsRegisterModule,this,["${name}",Reflect.apply(function(__module){(function(module,exports,require,setTimeout,setInterval,clearTimeout,clearInterval){
|
||||
${content}
|
||||
})(__module,__module.exports,doric.__require__,doricSetTimeout,doricSetInterval,doricClearTimeout,doricClearInterval);
|
||||
return __module.exports;},this,[{exports:{}}])])`;
|
||||
|
@ -26,7 +26,7 @@ export function loadJS(contextId: string, script: string) {
|
||||
}
|
||||
|
||||
function packageModuleScript(name: string, content: string) {
|
||||
return `Reflect.apply(doric.jsRegisterModule,this,[${name},Reflect.apply(function(__module){(function(module,exports,require,setTimeout,setInterval,clearTimeout,clearInterval){
|
||||
return `Reflect.apply(doric.jsRegisterModule,this,["${name}",Reflect.apply(function(__module){(function(module,exports,require,setTimeout,setInterval,clearTimeout,clearInterval){
|
||||
${content}
|
||||
})(__module,__module.exports,doric.__require__,doricSetTimeout,doricSetInterval,doricClearTimeout,doricClearInterval);
|
||||
return __module.exports;},this,[{exports:{}}])])`
|
||||
|
Reference in New Issue
Block a user