(dirname: string, content: string)
| 14 | } |
| 15 | |
| 16 | export async function writeWorker(dirname: string, content: string): Promise<string> { |
| 17 | const filename = `worker-${hashString(content)}.js`; |
| 18 | await fs.writeFile(path.join(dirname, filename), content, 'utf-8'); |
| 19 | return filename; |
| 20 | } |
| 21 | |
| 22 | const existingBundles = new Map<string, string>(); |
| 23 | const existingReplaces = new Map<string, string>(); |
no test coverage detected