diff --git a/lib/hbs-imports-babel-plugin.ts b/lib/hbs-imports-babel-plugin.ts index a894a7c..1e07df3 100644 --- a/lib/hbs-imports-babel-plugin.ts +++ b/lib/hbs-imports-babel-plugin.ts @@ -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('/'); diff --git a/package.json b/package.json index c0f05c5..ef3c733 100644 --- a/package.json +++ b/package.json @@ -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"