Skip to content

Commit

Permalink
Merge pull request #872 from thoov/windows-path-issue
Browse files Browse the repository at this point in the history
  • Loading branch information
rwjblue authored Jun 24, 2021
2 parents b525bd5 + 45a857c commit b4269b1
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 b4269b1

Please sign in to comment.