Skip to content

Commit

Permalink
Template compiler plugin not removed due to bad path comparison on
Browse files Browse the repository at this point in the history
Windows

Same issue that was fixed in: #742
  • Loading branch information
thoov committed Jun 23, 2021
1 parent 8fe8eae commit 6b9b60f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/core/src/template-compiler-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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');
}

0 comments on commit 6b9b60f

Please sign in to comment.