mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-06-19 03:43:54 +08:00
@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.
8 lines
292 B
JavaScript
Vendored
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 };
|