mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 22:40:01 -04:00
fix import proxy
This commit is contained in:
parent
275950387a
commit
aafcbeb5e4
4 changed files with 10 additions and 13 deletions
|
@ -5,9 +5,7 @@ export default function (client, self) {
|
|||
return function (url) {
|
||||
const resolved = new URL(url, base).href;
|
||||
|
||||
return function () {}.constructor(
|
||||
`return import("${encodeUrl(resolved)}")`
|
||||
)();
|
||||
return Function(`return import("${encodeUrl(resolved)}")`)();
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue