Skip to content

Commit

Permalink
Refine configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoLaval committed Oct 8, 2024
1 parent 26ece53 commit f747874
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
48 changes: 24 additions & 24 deletions babel.config.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
{
"presets": [
["@babel/preset-env", { "modules": false }],
"@babel/preset-react"
],
"plugins": [
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-object-rest-spread",
"@babel/plugin-syntax-dynamic-import"
],
"env": {
"test": {
"presets": [
[
"@babel/preset-env",
{ "modules": "commonjs", "useBuiltIns": "usage", "corejs": "3.6" }
],
"@babel/preset-react"
],
"plugins": [
"@babel/plugin-proposal-class-properties",
"@babel/plugin-transform-modules-commonjs"
]
}
}
"presets": [
["@babel/preset-env", { "modules": false, "target": { "node": true } }],
"@babel/preset-react"
],
"plugins": [
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-object-rest-spread",
"@babel/plugin-syntax-dynamic-import"
],
"env": {
"test": {
"presets": [
[
"@babel/preset-env",
{ "modules": "commonjs", "useBuiltIns": "usage", "corejs": "3.6" }
],
"@babel/preset-react"
],
"plugins": [
"@babel/plugin-proposal-class-properties",
"@babel/plugin-transform-modules-commonjs"
]
}
}
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"module": "CommonJS",
"target": "es5",
"target": "ESNext",
"lib": ["es2015", "ES2019.Object"],
"esModuleInterop": true,
"declaration": true,
Expand Down

0 comments on commit f747874

Please sign in to comment.