Skip to content

Commit

Permalink
fix windows
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklx committed Mar 4, 2024
1 parent e23d0eb commit 1bec1e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/hbs-imports-babel-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = function hbsImports({ types: t }: { types: BabelTypes}) {
let cwd = process.cwd();
ImportProcessor.options = Object.assign({}, state.opts);
// @ts-ignore
const fileName = path.hub.file.opts.filename;
const fileName = path.hub.file.opts.filename.replace(/\\/g, '/');
if (!fileName) return;
if (fileName.includes('.embroider')) {
const parts = fileName.split('/');
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.4",
"version": "1.0.5",
"repository": {
"type": "git",
"url": "https://github.com/patricklx/ember-hbs-imports"
Expand Down

0 comments on commit 1bec1e4

Please sign in to comment.