Remove excessive .babelrc (#6493)
* Remove excessive babelrc * wip * Restore styled-components plugin * fix
This commit is contained in:
45
.babelrc
45
.babelrc
@@ -1,29 +1,28 @@
|
|||||||
{
|
{
|
||||||
"presets": [
|
"presets": [
|
||||||
"@babel/preset-react",
|
"@babel/preset-react",
|
||||||
"@babel/preset-typescript",
|
"@babel/preset-env",
|
||||||
[
|
"@babel/preset-typescript"
|
||||||
"@babel/preset-env",
|
|
||||||
{
|
|
||||||
"corejs": {
|
|
||||||
"version": "3",
|
|
||||||
"proposals": true
|
|
||||||
},
|
|
||||||
"useBuiltIns": "usage"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
],
|
],
|
||||||
"plugins": [
|
"plugins": [
|
||||||
"styled-components",
|
"babel-plugin-transform-typescript-metadata",
|
||||||
[
|
[
|
||||||
"@babel/plugin-proposal-decorators",
|
"@babel/plugin-proposal-decorators",
|
||||||
{
|
{
|
||||||
"legacy": true
|
"legacy": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"@babel/plugin-transform-destructuring",
|
"@babel/plugin-proposal-class-properties",
|
||||||
"@babel/plugin-transform-regenerator",
|
[
|
||||||
"transform-class-properties"
|
"transform-inline-environment-variables",
|
||||||
|
{
|
||||||
|
"include": [
|
||||||
|
"SOURCE_COMMIT",
|
||||||
|
"SOURCE_VERSION"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"tsconfig-paths-module-resolver"
|
||||||
],
|
],
|
||||||
"env": {
|
"env": {
|
||||||
"production": {
|
"production": {
|
||||||
@@ -36,13 +35,29 @@
|
|||||||
]
|
]
|
||||||
],
|
],
|
||||||
"ignore": [
|
"ignore": [
|
||||||
|
"**/__mocks__",
|
||||||
"**/*.test.ts"
|
"**/*.test.ts"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"development": {
|
"development": {
|
||||||
"ignore": [
|
"ignore": [
|
||||||
|
"**/__mocks__",
|
||||||
"**/*.test.ts"
|
"**/*.test.ts"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"test": {
|
||||||
|
"presets": [
|
||||||
|
[
|
||||||
|
"@babel/preset-env",
|
||||||
|
{
|
||||||
|
"corejs": {
|
||||||
|
"version": "3",
|
||||||
|
"proposals": true
|
||||||
|
},
|
||||||
|
"useBuiltIns": "usage"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": "../../../server/.babelrc"
|
|
||||||
}
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": "../../../server/.babelrc"
|
|
||||||
}
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": "../../../server/.babelrc"
|
|
||||||
}
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": "../../../server/.babelrc"
|
|
||||||
}
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": "../../../server/.babelrc"
|
|
||||||
}
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": "../../../server/.babelrc"
|
|
||||||
}
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": "../../../server/.babelrc"
|
|
||||||
}
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": "../../../server/.babelrc"
|
|
||||||
}
|
|
||||||
@@ -1,48 +0,0 @@
|
|||||||
{
|
|
||||||
"presets": [
|
|
||||||
"@babel/preset-react",
|
|
||||||
[
|
|
||||||
"@babel/preset-env",
|
|
||||||
{
|
|
||||||
"targets": {
|
|
||||||
"node": "18"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"@babel/preset-typescript"
|
|
||||||
],
|
|
||||||
"plugins": [
|
|
||||||
"babel-plugin-transform-typescript-metadata",
|
|
||||||
[
|
|
||||||
"@babel/plugin-proposal-decorators",
|
|
||||||
{
|
|
||||||
"legacy": true
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"@babel/plugin-proposal-class-properties",
|
|
||||||
[
|
|
||||||
"transform-inline-environment-variables",
|
|
||||||
{
|
|
||||||
"include": [
|
|
||||||
"SOURCE_COMMIT",
|
|
||||||
"SOURCE_VERSION"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"tsconfig-paths-module-resolver"
|
|
||||||
],
|
|
||||||
"env": {
|
|
||||||
"production": {
|
|
||||||
"ignore": [
|
|
||||||
"**/__mocks__",
|
|
||||||
"**/*.test.ts"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"development": {
|
|
||||||
"ignore": [
|
|
||||||
"**/__mocks__",
|
|
||||||
"**/*.test.ts"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user