From 0d314c19504c8942a13666a434747fbbc43865b4 Mon Sep 17 00:00:00 2001 From: Kris Selden Date: Wed, 12 Jan 2022 13:12:31 -0800 Subject: [PATCH] Fixes babel filter config if the emitted app does not have @embroider/core. --- packages/core/src/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/app.ts b/packages/core/src/app.ts index 8c613c109..350c4cbf0 100644 --- a/packages/core/src/app.ts +++ b/packages/core/src/app.ts @@ -1468,7 +1468,7 @@ function stringOrBufferEqual(a: string | Buffer, b: string | Buffer): boolean { } const babelFilterTemplate = compile(` -const { babelFilter } = require('@embroider/core'); +const { babelFilter } = require(${JSON.stringify(require.resolve('./index.js'))}); module.exports = babelFilter({{{json-stringify skipBabel}}}, "{{{js-string-escape appRoot}}}"); `) as (params: { skipBabel: Options['skipBabel']; appRoot: string }) => string;