Skip to content

Commit

Permalink
build: reinstate @edx/browserslist-config
Browse files Browse the repository at this point in the history
  • Loading branch information
bradenmacdonald authored and brian-smith-tcril committed Dec 6, 2024
1 parent d8cd81d commit fdf4223
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
15 changes: 2 additions & 13 deletions babel.config.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,13 @@
{
"presets": [
[
"@babel/preset-env",
{
"modules": false,
"targets": "defaults"
}
],
["@babel/preset-env", { "modules": false } ],
["@babel/preset-react", { "useSpread": true } ],
"@babel/preset-typescript"
],
"env": {
"test": {
"presets": [
[
"@babel/preset-env",
{
"targets": "defaults"
}
],
["@babel/preset-env", {}],
["@babel/preset-react", { "useSpread": true } ],
"@babel/preset-typescript"
]
Expand Down
13 changes: 10 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
"@babel/preset-env": "^7.16.8",
"@babel/preset-react": "^7.16.7",
"@babel/preset-typescript": "^7.16.7",
"@edx/browserslist-config": "^1.2.0",
"@edx/eslint-config": "^4.3.0",
"@edx/stylelint-config-edx": "^2.3.0",
"@edx/typescript-config": "^1.0.1",
Expand Down Expand Up @@ -178,6 +179,9 @@
"/node_modules/(?!(@openedx/paragon)/).*/"
]
},
"browserslist": [
"extends @edx/browserslist-config"
],
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"npx eslint"
Expand Down

0 comments on commit fdf4223

Please sign in to comment.