Skip to content

Commit 1bec1e4

Browse files
committed
fix windows
1 parent e23d0eb commit 1bec1e4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/hbs-imports-babel-plugin.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module.exports = function hbsImports({ types: t }: { types: BabelTypes}) {
2222
let cwd = process.cwd();
2323
ImportProcessor.options = Object.assign({}, state.opts);
2424
// @ts-ignore
25-
const fileName = path.hub.file.opts.filename;
25+
const fileName = path.hub.file.opts.filename.replace(/\\/g, '/');
2626
if (!fileName) return;
2727
if (fileName.includes('.embroider')) {
2828
const parts = fileName.split('/');

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.4",
3+
"version": "1.0.5",
44
"repository": {
55
"type": "git",
66
"url": "https://github.com/patricklx/ember-hbs-imports"

0 commit comments

Comments
 (0)