microsoft/qdk
Publicmirrored from https://github.com/microsoft/qdkAvailable
source/npm/qsharp/src/compiler/worker.ts
9lines · modecode
| 1 | // Copyright (c) Microsoft Corporation. |
| 2 | // Licensed under the MIT License. |
| 3 | |
| 4 | import { createWorker } from "../workers/worker.js"; |
| 5 | import { compilerProtocol } from "./compiler.js"; |
| 6 | |
| 7 | // message handler exported for backwards compatibility |
| 8 | export const messageHandler = createWorker(compilerProtocol); |
| 9 | addEventListener("message", messageHandler); |
| 10 | |