mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-14 06:50:01 -04:00
migrate to $scramjet object from __scramjet
This commit is contained in:
parent
146c202ae2
commit
cf9e5a3418
13 changed files with 77 additions and 67 deletions
|
@ -3,7 +3,7 @@ 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 += `import "${self.$scramjet.config[script]}"\n`
|
||||
})
|
||||
str += rewriteJs(js, origin);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue