discourse/frontend/asset-processor/workerpool-shim.js
David Taylor 76b4eb7e92
DEV: Bump babel plugin in asset-processor and stub workerpool (#40438)
@rollup/plugin-babel 7.1.0 pulls in workerpool for an opt-in parallel
mode we never enable. Alias workerpool to a local stub so it is never
bundled. Also adds a shim for the `os` package, which the rollup plugin
now imports.
2026-06-01 10:54:43 +01:00

8 lines
292 B
JavaScript
Vendored

// Stub for @rollup/plugin-babel's parallel mode (unused); the real workerpool touches worker globals that break mini-racer.
export function pool() {
throw new Error("workerpool is stubbed out in the asset-processor build");
}
export function worker() {}
export default { pool, worker };