Add no-babelrc option in babel-node (#5621)
<!-- Before making a PR please make sure to read our contributing guidelines https://github.com/babel/babel/blob/master/CONTRIBUTING.md For any issue references: Add a comma-separated list of a [closing word](https://help.github.com/articles/closing-issues-via-commit-messages/) followed by the ticket number fixed by the PR --> | Q | A <!--(yes/no) --> | ------------------------ | --- | Patch: Bug Fix? | | Major: Breaking Change? | | Minor: New Feature? | y | Deprecations? | | Spec Compliancy? | | Tests Added/Pass? | y/y | Fixed Tickets | #5616 | License | MIT | Doc PR | <!-- if yes, add `[skip ci]` to your commit message to skip CI builds --> | Dependency Changes | <!-- Describe your changes below in as much detail as possible --> Once merged I will make the corresponding documentation changes on the website (in a 7 branch)
This commit is contained in:
committed by
Logan Smyth
parent
01d969a182
commit
52b800decb
3
packages/babel-node/test/fixtures/babel-node/--no-babelrc/.babelrc
vendored
Normal file
3
packages/babel-node/test/fixtures/babel-node/--no-babelrc/.babelrc
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"plugins": ["./logPlugin.js"]
|
||||
}
|
||||
1
packages/babel-node/test/fixtures/babel-node/--no-babelrc/in-files/index.js
vendored
Normal file
1
packages/babel-node/test/fixtures/babel-node/--no-babelrc/in-files/index.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
console.log("foo");
|
||||
4
packages/babel-node/test/fixtures/babel-node/--no-babelrc/in-files/logPlugin.js
vendored
Normal file
4
packages/babel-node/test/fixtures/babel-node/--no-babelrc/in-files/logPlugin.js
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
module.exports = function () {
|
||||
console.log("Plugin was loaded, shouldn't appear due to --no-babelrc");
|
||||
return {}
|
||||
}
|
||||
3
packages/babel-node/test/fixtures/babel-node/--no-babelrc/options.json
vendored
Normal file
3
packages/babel-node/test/fixtures/babel-node/--no-babelrc/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"args": ["--no-babelrc", "index"]
|
||||
}
|
||||
1
packages/babel-node/test/fixtures/babel-node/--no-babelrc/stdout.txt
vendored
Normal file
1
packages/babel-node/test/fixtures/babel-node/--no-babelrc/stdout.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
foo
|
||||
Reference in New Issue
Block a user