mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-15 15:30:00 -04:00
Add format script to package.json and format with prettier.
This commit is contained in:
parent
61bd33845b
commit
be3b87e795
39 changed files with 1732 additions and 1734 deletions
|
@ -1,12 +1,12 @@
|
|||
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);
|
||||
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);
|
||||
|
||||
return str;
|
||||
return str;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue