Skip to content

Commit

Permalink
Ignore babel.config.js files when loading helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
rpetrich committed Jul 20, 2019
1 parent 96f98cc commit 57d028e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion async-to-promises.ts
Expand Up @@ -2893,7 +2893,7 @@ export default function({ types, template, traverse, transformFromAst, version }
const newHelpers: { [name: string]: Helper } = {};
const helperAst = require(isNewBabel ? "@babel/core" : "babylon").parse(helperCode, { sourceType: "module" });
transformFromAst(helperAst, helperCode, {
babelrc: false, plugins: [{
babelrc: false, configFile: false, plugins: [{
visitor: {
ExportNamedDeclaration(path) {
const declaration = path.get("declaration");
Expand Down

0 comments on commit 57d028e

Please sign in to comment.