mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-15 15:30:00 -04:00
semicolons
This commit is contained in:
parent
56767f5b31
commit
4906b71e47
37 changed files with 789 additions and 784 deletions
|
@ -1,12 +1,12 @@
|
|||
import { rewriteJs } from "./js"
|
||||
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) => {
|
||||
str += `import "${self.$scramjet.config[script]}"\n`
|
||||
})
|
||||
str += rewriteJs(js, origin)
|
||||
str += `import "${self.$scramjet.config[script]}"\n`;
|
||||
});
|
||||
str += rewriteJs(js, origin);
|
||||
|
||||
return str
|
||||
return str;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue