From 6b9b60fd3ae6ea8b3095d66ab19bbaaf7c21e7c6 Mon Sep 17 00:00:00 2001 From: Travis Hoover Date: Wed, 23 Jun 2021 16:18:08 -0700 Subject: [PATCH] Template compiler plugin not removed due to bad path comparison on Windows Same issue that was fixed in: #742 --- packages/core/src/template-compiler-node.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/core/src/template-compiler-node.ts b/packages/core/src/template-compiler-node.ts index 6a4b393f5..2e2e1e626 100644 --- a/packages/core/src/template-compiler-node.ts +++ b/packages/core/src/template-compiler-node.ts @@ -4,7 +4,7 @@ import { PluginItem, transform } from '@babel/core'; import type { Params as InlineBabelParams } from './babel-plugin-inline-hbs'; import { Plugins } from './ember-template-compiler-types'; import { getEmberExports } from './load-ember-template-compiler'; -import { TemplateCompiler } from './template-compiler-common'; +import { TemplateCompiler, matchesSourceFile } from './template-compiler-common'; import adjustImportsPlugin from './babel-plugin-adjust-imports'; export interface NodeTemplateCompilerParams { @@ -77,10 +77,6 @@ export class NodeTemplateCompiler extends TemplateCompiler { } } -function matchesSourceFile(filename: string) { - return /(htmlbars-inline-precompile|ember-cli-htmlbars)\/(index|lib\/require-from-worker)(\.js)?$/.test(filename); -} - function hasProperties(item: any) { return item && (typeof item === 'object' || typeof item === 'function'); }