babelrc: Replace with babel.config.js.

This has different resolution semantics that we need to take advantage
of: .babelrc only applied to files within its own package.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg 2019-10-11 22:50:57 -07:00 committed by Tim Abbott
parent a3475b422d
commit d8070376fb
2 changed files with 16 additions and 16 deletions

View File

@ -1,16 +0,0 @@
{
"presets": [
[
"@babel/preset-env",
{
"corejs": 3,
"useBuiltIns": "usage"
}
],
"@babel/typescript"
],
"plugins": [
"@babel/proposal-class-properties"
],
"sourceType": "unambiguous"
}

16
babel.config.js Normal file
View File

@ -0,0 +1,16 @@
module.exports = {
presets: [
[
"@babel/preset-env",
{
corejs: 3,
useBuiltIns: "usage",
},
],
"@babel/typescript",
],
plugins: [
"@babel/proposal-class-properties",
],
sourceType: "unambiguous",
};