mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 14:30:02 -04:00
fix worker rewriter
This commit is contained in:
parent
f42274d5ce
commit
fa779017ad
1 changed files with 3 additions and 4 deletions
|
@ -1,9 +1,8 @@
|
|||
import { rewriteJs } from "./js";
|
||||
export function rewriteWorkers(js: string, origin?: URL) {
|
||||
let str = new String().toString()[
|
||||
//@ts-expect-error
|
||||
("codecs", "config", "shared", "client")
|
||||
].forEach((script) => {
|
||||
let str = new String().toString();
|
||||
|
||||
["codecs", "config", "shared", "client"].forEach((script) => {
|
||||
str += `import "${self.$scramjet.config[script]}"\n`;
|
||||
});
|
||||
str += rewriteJs(js, origin);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue