Ensure the the config file isn't re-processed when users load a partial config and then pass it back to Babel.

This commit is contained in:
Logan Smyth
2018-05-11 17:22:06 -07:00
parent bdcfb697a6
commit 98f0808a22
2 changed files with 2 additions and 0 deletions

View File

@@ -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;

View File

@@ -904,6 +904,7 @@ describe("buildConfigChain", function() {
describe("config files", () => {
const getDefaults = () => ({
babelrc: false,
configFile: false,
cwd: process.cwd(),
envName: "development",
passPerPreset: false,