From 08b3c74fb02c3b84f8fef391d8b0ee9e7362b554 Mon Sep 17 00:00:00 2001 From: Edward Faulkner Date: Tue, 29 Nov 2022 16:05:10 -0500 Subject: [PATCH] Detect babel-plugin-ember-template-complation when other plugins are preventing parallelization We need to detect and replace the template compilation plugin that is likely to be present in a v1 addon. We were missing one newish case: - ember-cli-htmlbars 6.0 - with an ember version that doesn't need the old modulesApiPolyfill - when some other babel plugin is preventing ember-cli-babel from parallelizing. --- packages/compat/src/detect-babel-plugins.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/compat/src/detect-babel-plugins.ts b/packages/compat/src/detect-babel-plugins.ts index dbcd663e7..1e65a7ba2 100644 --- a/packages/compat/src/detect-babel-plugins.ts +++ b/packages/compat/src/detect-babel-plugins.ts @@ -76,4 +76,5 @@ const htmlbarPathMatches = [ ['ember-cli-htmlbars', 'lib', 'require-from-worker.js'].join(sep), ['ember-cli-htmlbars', 'index'].join(sep), ['ember-cli-htmlbars', 'lib', 'require-from-worker'].join(sep), + ['babel-plugin-ember-template-compilation', 'src', 'node-main.js'].join(sep), ];