Skip to content

Commit

Permalink
microsoft#36 Added dynamic import support to enable the loading of es…
Browse files Browse the repository at this point in the history
…m dependencies
  • Loading branch information
v4lentin1879 committed May 27, 2024
1 parent e76a7cb commit 86c8e61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/scriptLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,8 @@ namespace AMDLoader {

scriptSource = nodeInstrumenter(scriptSource, normalizedScriptSrc);
const scriptOpts: INodeVMScriptOptions = { filename: vmScriptPathOrUri, cachedData, importModuleDynamically: (specifier) => {
return import(specifier);
// @ts-ignore
return import(specifier);
} };
const script = this._createAndEvalScript(moduleManager, scriptSource, scriptOpts, callback, errorback);

Expand Down

0 comments on commit 86c8e61

Please sign in to comment.