Do not bail on SHOW_CONFIG_FOR matches (#12954)

Co-authored-by: Babel Bot <babel-bot@users.noreply.github.com>
This commit is contained in:
Huáng Jùnliàng 2021-03-23 15:02:07 -04:00 committed by GitHub
parent b360d8d614
commit b784c81aeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 15 additions and 13 deletions

View File

@ -29,3 +29,4 @@ programmatic options from @babel/cli
},
"filename": "src//foo.js"
}
-----End Babel configs-----

View File

@ -29,3 +29,4 @@ programmatic options from @babel/cli
},
"filename": "src/foo.js"
}
-----End Babel configs-----

View File

@ -0,0 +1 @@
"use strict";

View File

@ -29,4 +29,5 @@ programmatic options from @babel/cli
},
"filename": "src//foo.js"
}
Successfully compiled 1 file with Babel (123ms).
-----End Babel configs-----
Successfully compiled 2 files with Babel (123ms).

View File

@ -11,7 +11,6 @@ module.exports = {
"@foo/babel-preset-1",
[
{
name: "@foo/inline-babel-preset-1",
plugins: [
{
name: "@foo/inline-babel-plugin-1",

View File

@ -1,4 +1,3 @@
module.exports = (api) => ({
name: "@foo/" + __dirname,
plugins: ["@foo/" + __dirname.replace("preset", "plugin")]
plugins: ["@foo/babel-plugin-1"]
})

View File

@ -1,4 +1,3 @@
module.exports = (api) => ({
name: "@foo/" + __dirname,
plugins: ["@foo/" + __dirname.replace("preset", "plugin")]
plugins: ["@foo/babel-plugin-2"]
})

View File

@ -1,4 +1,3 @@
module.exports = (api) => ({
name: "@foo/" + __dirname,
plugins: ["@foo/" + __dirname.replace("preset", "plugin")]
plugins: ["@foo/babel-plugin-3"]
})

View File

@ -1,4 +1,3 @@
module.exports = (api) => ({
name: "@foo/" + __dirname,
plugins: ["@foo/" + __dirname.replace("preset", "plugin")]
plugins: ["@foo/babel-plugin-4"]
})

View File

@ -39,7 +39,6 @@ config <CWD>/my-extended.js .overrides[0].env["test"]
"@foo/babel-preset-1",
[
{
"name": "@foo/inline-babel-preset-1",
"plugins": [
{
"name": "@foo/inline-babel-plugin-1",
@ -125,3 +124,5 @@ programmatic options from @babel/cli
},
"filename": "./src/index.js"
}
-----End Babel configs-----
"use strict";

View File

@ -261,9 +261,9 @@ export function* buildRootChain(
// print config by the order of ascending priority
[configReport, babelRcReport, programmaticReport]
.filter(x => !!x)
.join("\n\n"),
.join("\n\n") +
"\n-----End Babel configs-----",
);
return null;
}
// Insert file chain in front so programmatic options have priority
// over configuration file chain items.