(config: SerializedConfig)
| 25 | } |
| 26 | |
| 27 | function setupDefines(config: SerializedConfig) { |
| 28 | for (const key in config.defines) { |
| 29 | (globalThis as any)[key] = config.defines[key] |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | function setupEnv(env: Record<string, any>) { |
| 34 | const state = getWorkerState() |