Skip to content

Commit

Permalink
fix embroider namespacing
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklx committed Mar 1, 2024
1 parent 2ad3fe5 commit 313d478
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/hbs-imports-babel-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ module.exports = function hbsImports({ types: t }: { types: BabelTypes}) {
// @ts-ignore
const fileName = path.hub.file.opts.filename;
if (!fileName) return;
if (fileName.includes('embroider')) {
if (fileName.includes('.embroider')) {
const parts = fileName.split('/');
const index = parts.indexOf('embroider');
const index = parts.indexOf('.embroider');
cwd = parts.slice(0, index + 2).join('/');
}
ImportProcessor.options.root = cwd;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ember-hbs-imports",
"version": "1.0.0",
"version": "1.0.1",
"repository": {
"type": "git",
"url": "https://github.com/patricklx/ember-hbs-imports"
Expand Down

0 comments on commit 313d478

Please sign in to comment.