Skip to content

Commit

Permalink
Do not bail on SHOW_CONFIG_FOR matches (#12954)
Browse files Browse the repository at this point in the history
Co-authored-by: Babel Bot <babel-bot@users.noreply.github.com>
  • Loading branch information
JLHwung and babel-bot committed Mar 23, 2021
1 parent b360d8d commit b784c81
Show file tree
Hide file tree
Showing 13 changed files with 15 additions and 13 deletions.
@@ -1 +1,2 @@
"use strict";
"use strict";
Expand Up @@ -29,3 +29,4 @@ programmatic options from @babel/cli
},
"filename": "src//foo.js"
}
-----End Babel configs-----
@@ -1 +1,2 @@
"use strict";
"use strict";
Expand Up @@ -29,3 +29,4 @@ programmatic options from @babel/cli
},
"filename": "src/foo.js"
}
-----End Babel configs-----
@@ -0,0 +1 @@
"use strict";
Expand Up @@ -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).
Expand Up @@ -11,7 +11,6 @@ module.exports = {
"@foo/babel-preset-1",
[
{
name: "@foo/inline-babel-preset-1",
plugins: [
{
name: "@foo/inline-babel-plugin-1",
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Expand Up @@ -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",
Expand Down Expand Up @@ -125,3 +124,5 @@ programmatic options from @babel/cli
},
"filename": "./src/index.js"
}
-----End Babel configs-----
"use strict";
4 changes: 2 additions & 2 deletions packages/babel-core/src/config/config-chain.js
Expand Up @@ -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.
Expand Down

0 comments on commit b784c81

Please sign in to comment.