diff --git a/packages/compat/src/default-pipeline.ts b/packages/compat/src/default-pipeline.ts index fe2971e11..f85302030 100644 --- a/packages/compat/src/default-pipeline.ts +++ b/packages/compat/src/default-pipeline.ts @@ -12,7 +12,7 @@ interface PipelineOptions extends Options { export default function defaultPipeline( emberApp: object, - packager: Packager, + packager?: Packager, options?: PipelineOptions ): Node { let outputPath: string; @@ -43,7 +43,7 @@ export default function defaultPipeline( let embroiderApp = new App(emberApp, addons, options); - if (process.env.STAGE2_ONLY) { + if (process.env.STAGE2_ONLY || !packager) { return mergeTrees([embroiderApp.tree, writeFile('.stage2-output', () => outputPath)]); }