mirror of https://github.com/webpack/webpack.git
9 lines
207 B
JavaScript
9 lines
207 B
JavaScript
|
import { parentPort } from "worker_threads";
|
||
|
|
||
|
const { getMessage } = await import("./chunk.js");
|
||
|
|
||
|
parentPort.on("message", (msg) => {
|
||
|
// Worker with ESM import
|
||
|
parentPort.postMessage(getMessage(msg));
|
||
|
});
|