diff --git a/packages/babel-core/src/config/loading/files/configuration.js b/packages/babel-core/src/config/loading/files/configuration.js index 663fdcb4a7..1c44439092 100644 --- a/packages/babel-core/src/config/loading/files/configuration.js +++ b/packages/babel-core/src/config/loading/files/configuration.js @@ -142,6 +142,7 @@ const readConfigJS = makeStrongCache((filepath, cache) => { cache, // Expose ".env()" so people can easily get the same env that we expose using the "env" key. env: () => cache.using(() => getEnv()), + async: () => false, }); } else { cache.forever(); diff --git a/packages/babel-core/src/config/option-manager.js b/packages/babel-core/src/config/option-manager.js index 394f89d9f6..b9ea81c796 100644 --- a/packages/babel-core/src/config/option-manager.js +++ b/packages/babel-core/src/config/option-manager.js @@ -189,6 +189,7 @@ const loadDescriptor = makeWeakCache( const api = Object.assign(Object.create(context), { cache, env: () => cache.using(() => getEnv()), + async: () => false, }); try {