Skip to content

Commit

Permalink
Added module import as template literal. See #5730
Browse files Browse the repository at this point in the history
  • Loading branch information
marklundin committed Oct 30, 2023
1 parent 52c3471 commit cb05191
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/framework/handlers/script-esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/
export const pcImport = (app, moduleSpecifier) => {
// TODO: handle bundled contexts correctly
return import(moduleSpecifier);
return import(`${moduleSpecifier}`);
};

/** @typedef {import('./handler.js').ResourceHandler} ResourceHandler */
Expand Down

0 comments on commit cb05191

Please sign in to comment.