Skip to content

Commit ae60563

Browse files
committed
support embroider static
1 parent 746fd46 commit ae60563

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/import-processor.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -359,11 +359,11 @@ const importProcessors = {
359359
}
360360

361361
const createComponentLetBlockExpr = (comp: [key: string, info: {path: string}]) => {
362-
const path = '__hbs__import_:' + comp[1].path.replace(/\\/g, '/');
362+
const path = '__hbs__import_' + comp[1].path.replace(/\\/g, '/');
363363
return importProcessors.glimmer.preprocess(`{{#let (component "${path}") as |${comp[0]}|}}{{/let}}`).body[0] as glimmer.AST.BlockStatement;
364364
};
365365
const handleHelper = (helper: { nodes: PathExpression[], resolvedPath: string }) => {
366-
const path = '__hbs__import_:' + helper.resolvedPath.replace(/\\/g, '/');
366+
const path = '__hbs__import_' + helper.resolvedPath.replace(/\\/g, '/');
367367
if (this.options.useModifierHelperHelpers) {
368368
let lookup = `"${path}"`;
369369
if (this.options.useHelperWrapper) {
@@ -377,7 +377,7 @@ const importProcessors = {
377377
}
378378
};
379379
const handleModifier = (modifier: { nodes: PathExpression[], resolvedPath: string }) => {
380-
const path = '__hbs__import_:' + modifier.resolvedPath.replace(/\\/g, '/');
380+
const path = '__hbs__import_' + modifier.resolvedPath.replace(/\\/g, '/');
381381
if (this.options.useModifierHelperHelpers) {
382382
let lookup = `"${path}"`;
383383
if (this.options.useHelperWrapper) {

0 commit comments

Comments
 (0)