Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for babel.config.json (#10501)
* Add support for babel.config.json root config * Throw if multiple configuration files are found * Add tests
- Loading branch information
1 parent
38a3063
commit 3a5e8a8
Showing
6 changed files
with
88 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
...ges/babel-core/test/fixtures/config/config-files/babel-config-js-and-json/babel.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
comments: true | ||
}; |
3 changes: 3 additions & 0 deletions
3
...s/babel-core/test/fixtures/config/config-files/babel-config-js-and-json/babel.config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"comments": true | ||
} |
3 changes: 3 additions & 0 deletions
3
packages/babel-core/test/fixtures/config/config-files/babel-config-js/babel.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
comments: true | ||
}; |
3 changes: 3 additions & 0 deletions
3
packages/babel-core/test/fixtures/config/config-files/babel-config-json/babel.config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"comments": true | ||
} |