diff --git a/packages/webpack/src/ember-webpack.ts b/packages/webpack/src/ember-webpack.ts index af20e64ca0..0ed199b172 100644 --- a/packages/webpack/src/ember-webpack.ts +++ b/packages/webpack/src/ember-webpack.ts @@ -37,6 +37,7 @@ import crypto from 'crypto'; import type { HbsLoaderConfig } from '@embroider/hbs-loader'; import semverSatisfies from 'semver/functions/satisfies'; import supportsColor from 'supports-color'; +import inspector from 'inspector'; const debug = makeDebug('embroider:debug'); @@ -524,6 +525,7 @@ const Webpack: PackagerConstructor = class Webpack implements Packager }; const threadLoaderOptions = { + workers: 'JOBS' in process.env && Number(process.env.JOBS), // poolTimeout shuts down idle workers. The problem is, for // interactive rebuilds that means your startup cost for the // next rebuild is at least 600ms worse. So we insist on @@ -547,7 +549,7 @@ function warmUp(extraOptions: object | false | undefined) { } function maybeThreadLoader(isParallelSafe: boolean, extraOptions: object | false | undefined) { - if (process.env.JOBS === '1' || extraOptions === false || !isParallelSafe) { + if (process.env.JOBS === '0' || extraOptions === false || !isParallelSafe) { return null; }