Skip to content

Commit

Permalink
Merge pull request #1838 from embroider-build/macros-bable-config
Browse files Browse the repository at this point in the history
make sure @embroider/macros doesn't try to load a babel config
  • Loading branch information
mansona authored Mar 7, 2024
2 parents 7e05475 + f41229b commit f3bd128
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/macros/src/babel/evaluate-json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ export function buildLiterals(
if (typeof value === 'undefined') {
return babelContext.types.identifier('undefined');
}
let statement = babelContext.parse(`a(${JSON.stringify(value)})`) as t.File;
let statement = babelContext.parse(`a(${JSON.stringify(value)})`, { configFile: false }) as t.File;
let expression = (statement.program.body[0] as t.ExpressionStatement).expression as t.CallExpression;
return expression.arguments[0] as t.ObjectExpression;
}

0 comments on commit f3bd128

Please sign in to comment.