Remove traces of babel
This commit is contained in:
parent
bded6e9240
commit
66eb6e212b
4 changed files with 44 additions and 1556 deletions
|
@ -1,24 +0,0 @@
|
|||
module.exports = function (api) {
|
||||
const env = api.env()
|
||||
|
||||
const config = {
|
||||
presets: [['@babel/preset-react'], ['@babel/preset-typescript']],
|
||||
babelrcRoots: ['.', './packages/*', './theatre/*', './examples/*'],
|
||||
}
|
||||
if (env === 'test') {
|
||||
config.presets.unshift(['@babel/preset-env', {targets: {node: 'current'}}])
|
||||
} else {
|
||||
if (env === 'development' || env === 'production') {
|
||||
config.plugins.unshift(
|
||||
['@babel/plugin-proposal-class-properties', {loose: true}],
|
||||
['@babel/plugin-proposal-optional-chaining'],
|
||||
['@babel/plugin-proposal-nullish-coalescing-operator'],
|
||||
['@babel/plugin-proposal-logical-assignment-operators'],
|
||||
)
|
||||
} else {
|
||||
throw Error(`Babel env ` + env + ' is not yet configured.')
|
||||
}
|
||||
}
|
||||
|
||||
return config
|
||||
}
|
|
@ -33,13 +33,6 @@
|
|||
]
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.18.9",
|
||||
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
||||
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
|
||||
"@babel/plugin-proposal-optional-chaining": "^7.18.9",
|
||||
"@babel/preset-env": "^7.18.9",
|
||||
"@babel/preset-react": "^7.18.6",
|
||||
"@babel/preset-typescript": "^7.18.6",
|
||||
"@microsoft/api-documenter": "^7.19.0",
|
||||
"@microsoft/api-extractor": "^7.28.6",
|
||||
"@typescript-eslint/eslint-plugin": "^5.30.7",
|
||||
|
|
|
@ -20,9 +20,6 @@
|
|||
"clean": "rm -rf ./.temp && rm -rf ./core/dist && rm -rf ./studio/dist"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/cli": "^7.14.3",
|
||||
"@babel/core": "^7.14.3",
|
||||
"@babel/runtime": "^7.14.0",
|
||||
"@microsoft/api-extractor": "^7.18.11",
|
||||
"@rollup/plugin-alias": "^3.1.5",
|
||||
"@rollup/plugin-multi-entry": "^4.1.0",
|
||||
|
@ -45,9 +42,6 @@
|
|||
"@types/styled-components": "^5.1.9",
|
||||
"@types/three": "^0.129.0",
|
||||
"@types/uuid": "^8.3.0",
|
||||
"babel-loader": "^8.2.2",
|
||||
"babel-polyfill": "^6.26.0",
|
||||
"babel-register": "^6.26.0",
|
||||
"blob-compare": "1.1.0",
|
||||
"circular-dependency-plugin": "^5.2.2",
|
||||
"cross-env": "^7.0.3",
|
||||
|
|
Loading…
Reference in a new issue