Skip to content

Commit

Permalink
fix glint
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklx committed Sep 23, 2022
1 parent f403fd2 commit 388f61e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions glint/glint-hbs-imports-env.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
const path = require('path');
const rewriteModule = Object.entries(require.cache).find(([k, v]) => k.includes('@glint\\transform\\lib\\template\\rewrite-module'))?.[1].exports;

if (!rewriteModule) {
return
}

const fn = rewriteModule.rewriteModule;
let relativePath = null;
let currentTemplate = null;
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": "0.5.15",
"version": "0.5.16",
"repository": {
"type": "git",
"url": "https://github.com/patricklx/ember-hbs-imports"
Expand Down

0 comments on commit 388f61e

Please sign in to comment.