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:
parent
b360d8d614
commit
b784c81aeb
@ -1 +1,2 @@
|
||||
"use strict";
|
||||
"use strict";
|
||||
|
||||
@ -29,3 +29,4 @@ programmatic options from @babel/cli
|
||||
},
|
||||
"filename": "src//foo.js"
|
||||
}
|
||||
-----End Babel configs-----
|
||||
|
||||
@ -1 +1,2 @@
|
||||
"use strict";
|
||||
"use strict";
|
||||
|
||||
@ -29,3 +29,4 @@ programmatic options from @babel/cli
|
||||
},
|
||||
"filename": "src/foo.js"
|
||||
}
|
||||
-----End Babel configs-----
|
||||
|
||||
1
packages/babel-cli/test/fixtures/babel/env - SHOW_CONFIG_FOR-windows/out-files/lib/foo.js
vendored
Normal file
1
packages/babel-cli/test/fixtures/babel/env - SHOW_CONFIG_FOR-windows/out-files/lib/foo.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
"use strict";
|
||||
@ -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).
|
||||
|
||||
@ -11,7 +11,6 @@ module.exports = {
|
||||
"@foo/babel-preset-1",
|
||||
[
|
||||
{
|
||||
name: "@foo/inline-babel-preset-1",
|
||||
plugins: [
|
||||
{
|
||||
name: "@foo/inline-babel-plugin-1",
|
||||
|
||||
@ -1,4 +1,3 @@
|
||||
module.exports = (api) => ({
|
||||
name: "@foo/" + __dirname,
|
||||
plugins: ["@foo/" + __dirname.replace("preset", "plugin")]
|
||||
plugins: ["@foo/babel-plugin-1"]
|
||||
})
|
||||
|
||||
@ -1,4 +1,3 @@
|
||||
module.exports = (api) => ({
|
||||
name: "@foo/" + __dirname,
|
||||
plugins: ["@foo/" + __dirname.replace("preset", "plugin")]
|
||||
plugins: ["@foo/babel-plugin-2"]
|
||||
})
|
||||
|
||||
@ -1,4 +1,3 @@
|
||||
module.exports = (api) => ({
|
||||
name: "@foo/" + __dirname,
|
||||
plugins: ["@foo/" + __dirname.replace("preset", "plugin")]
|
||||
plugins: ["@foo/babel-plugin-3"]
|
||||
})
|
||||
|
||||
@ -1,4 +1,3 @@
|
||||
module.exports = (api) => ({
|
||||
name: "@foo/" + __dirname,
|
||||
plugins: ["@foo/" + __dirname.replace("preset", "plugin")]
|
||||
plugins: ["@foo/babel-plugin-4"]
|
||||
})
|
||||
|
||||
@ -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";
|
||||
|
||||
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user