mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-14 15:00:01 -04:00
don't rewrite workers
This commit is contained in:
parent
2c1e2b7adf
commit
817f687621
1 changed files with 6 additions and 6 deletions
|
@ -1,11 +1,11 @@
|
|||
import { rewriteJs } from "./js";
|
||||
export function rewriteWorkers(js: string, origin?: URL) {
|
||||
let str = new String().toString();
|
||||
//
|
||||
// ["codecs", "config", "shared", "client"].forEach((script) => {
|
||||
// str += `import "${self.$scramjet.config[script]}"\n`;
|
||||
// });
|
||||
// str += rewriteJs(js, origin);
|
||||
|
||||
["codecs", "config", "shared", "client"].forEach((script) => {
|
||||
str += `import "${self.$scramjet.config[script]}"\n`;
|
||||
});
|
||||
str += rewriteJs(js, origin);
|
||||
|
||||
return str;
|
||||
return js;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue