Skip to content

Commit

Permalink
enhance: Target 2019 browser for lib build; remove need for babel run…
Browse files Browse the repository at this point in the history
…time
  • Loading branch information
ntucker committed Feb 9, 2024
1 parent 829f6a5 commit 45f0b39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"README.md"
],
"scripts": {
"build:lib": "NODE_ENV=production BROWSERSLIST_ENV='2018' babel src --out-dir lib --source-maps inline --extensions '.ts,.tsx,.js' --ignore '**/__tests__/**' --ignore '**/*.d.ts'",
"build:lib": "NODE_ENV=production BROWSERSLIST_ENV='2019' babel src --out-dir lib --source-maps inline --extensions '.ts,.tsx,.js' --ignore '**/__tests__/**' --ignore '**/*.d.ts'",
"build:types": "tsc --emitDeclarationOnly -p ./src",
"build:bundle": "run build:js:node && run build:js:browser",
"build:js:node": "BROWSERSLIST_ENV=node12 rollup -c",
Expand Down Expand Up @@ -106,7 +106,6 @@
}
},
"dependencies": {
"@babel/runtime": "^7.23.9",
"@types/hoist-non-react-statics": "^3.3.5",
"hoist-non-react-statics": "^3.3.2"
},
Expand Down
3 changes: 1 addition & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1684,7 +1684,7 @@ __metadata:
languageName: node
linkType: hard

"@babel/runtime@npm:^7.12.5, @babel/runtime@npm:^7.13.8, @babel/runtime@npm:^7.23.2, @babel/runtime@npm:^7.23.9, @babel/runtime@npm:^7.8.4":
"@babel/runtime@npm:^7.12.5, @babel/runtime@npm:^7.13.8, @babel/runtime@npm:^7.23.2, @babel/runtime@npm:^7.8.4":
version: 7.23.9
resolution: "@babel/runtime@npm:7.23.9"
dependencies:
Expand Down Expand Up @@ -5595,7 +5595,6 @@ __metadata:
"@anansi/eslint-plugin": "npm:0.16.48"
"@babel/cli": "npm:7.23.9"
"@babel/core": "npm:7.23.9"
"@babel/runtime": "npm:^7.23.9"
"@testing-library/react": "npm:14.2.1"
"@types/hoist-non-react-statics": "npm:^3.3.5"
"@types/jest": "npm:29.5.12"
Expand Down

0 comments on commit 45f0b39

Please sign in to comment.