Skip to content

Commit 313d478

Browse files
committed
fix embroider namespacing
1 parent 2ad3fe5 commit 313d478

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/hbs-imports-babel-plugin.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ module.exports = function hbsImports({ types: t }: { types: BabelTypes}) {
2424
// @ts-ignore
2525
const fileName = path.hub.file.opts.filename;
2626
if (!fileName) return;
27-
if (fileName.includes('embroider')) {
27+
if (fileName.includes('.embroider')) {
2828
const parts = fileName.split('/');
29-
const index = parts.indexOf('embroider');
29+
const index = parts.indexOf('.embroider');
3030
cwd = parts.slice(0, index + 2).join('/');
3131
}
3232
ImportProcessor.options.root = cwd;

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ember-hbs-imports",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"repository": {
55
"type": "git",
66
"url": "https://github.com/patricklx/ember-hbs-imports"

0 commit comments

Comments
 (0)