From 98f0808a224ac1ea1e61ee53b3217d491d1d7af5 Mon Sep 17 00:00:00 2001 From: Logan Smyth Date: Fri, 11 May 2018 17:22:06 -0700 Subject: [PATCH] Ensure the the config file isn't re-processed when users load a partial config and then pass it back to Babel. --- packages/babel-core/src/config/partial.js | 1 + packages/babel-core/test/config-chain.js | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/babel-core/src/config/partial.js b/packages/babel-core/src/config/partial.js index 2a491f5e69..c38ea87c08 100644 --- a/packages/babel-core/src/config/partial.js +++ b/packages/babel-core/src/config/partial.js @@ -49,6 +49,7 @@ export default function loadPrivatePartialConfig( // passed back to Babel a second time, it will be in the right structure // to not change behavior. options.babelrc = false; + options.configFile = false; options.envName = envName; options.cwd = absoluteCwd; options.passPerPreset = false; diff --git a/packages/babel-core/test/config-chain.js b/packages/babel-core/test/config-chain.js index 2e73b1329d..63f22da52b 100644 --- a/packages/babel-core/test/config-chain.js +++ b/packages/babel-core/test/config-chain.js @@ -904,6 +904,7 @@ describe("buildConfigChain", function() { describe("config files", () => { const getDefaults = () => ({ babelrc: false, + configFile: false, cwd: process.cwd(), envName: "development", passPerPreset: false,