Skip to content
This repository has been archived by the owner on Dec 8, 2024. It is now read-only.

Commit

Permalink
Merge pull request #477 from ember-cli/avoid-issues-with-cwd-with-bab…
Browse files Browse the repository at this point in the history
…el-config
  • Loading branch information
rwjblue authored Oct 26, 2021
2 parents acfc136 + 804bc90 commit 6a599ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,10 @@ module.exports = function (babel) {
precompileResultString = precompile(template, options);
}

let precompileResultAST = babel.parse(`var precompileResult = ${precompileResultString};`);
let precompileResultAST = babel.parse(`var precompileResult = ${precompileResultString};`, {
babelrc: false,
configFile: false,
});

let templateExpression = precompileResultAST.program.body[0].declarations[0].init;

Expand Down

0 comments on commit 6a599ee

Please sign in to comment.