Skip to content

Commit

Permalink
[No Ticket] Better babel setup
Browse files Browse the repository at this point in the history
  • Loading branch information
mschuwalow committed May 6, 2024
1 parent 5fb5395 commit 881a6d8
Show file tree
Hide file tree
Showing 8 changed files with 97 additions and 243 deletions.
12 changes: 0 additions & 12 deletions babel.config.json

This file was deleted.

251 changes: 39 additions & 212 deletions package-lock.json

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

9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,10 @@
"tiny-hashes": "1.0.1"
},
"devDependencies": {
"@babel/preset-env": "^7.22.5",
"@rollup/plugin-babel": "^6.0.3",
"@babel/plugin-transform-runtime": "^7.24.0",
"@babel/preset-env": "^7.24.0",
"@babel/runtime-corejs3": "^7.24.0",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^25.0.4",
"@rollup/plugin-node-resolve": "^15.2.1",
"@rollup/plugin-replace": "^5.0.2",
Expand All @@ -89,10 +91,11 @@
"@wdio/local-runner": "^8.32.4",
"@wdio/mocha-framework": "^8.32.4",
"@wdio/spec-reporter": "^8.32.4",
"babel-plugin-polyfill-corejs3": "^0.10.4",
"chai": "^4.3.7",
"chai-spies": "^1.0.0",
"compression": "^1.7.4",
"core-js": "^3.31.0",
"core-js-pure": "^3.36.0",
"cors": "^2.8.5",
"dirty-chai": "^2.0.1",
"eslint": "^8.43.0",
Expand Down
23 changes: 23 additions & 0 deletions rollup/babel-prebid.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"presets": [
[
// despite the name this will only do syntax transformations
"@babel/preset-env"
]
],
"plugins": [
[
// replace babel helpers with imports
"@babel/plugin-transform-runtime"
],
[
// install pure polyfills
"polyfill-corejs3",
{
"method": "usage-pure",
"version": "3.3"
}
]
],
"targets": "> 0.25%, not IE 11, not op_mini all" // keep in sync with https://github.com/prebid/Prebid.js/blob/master/package.json#L20
}
23 changes: 23 additions & 0 deletions rollup/babel-test-resources.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"presets": [
[
// despite the name this will only do syntax transformations
"@babel/preset-env"
]
],
"plugins": [
[
// replace babel helpers with imports
"@babel/plugin-transform-runtime"
],
[
// install pure polyfills
"polyfill-corejs3",
{
"method": "usage-pure",
"version": "3.3"
}
]
],
"targets": "safari 10, chrome 45, firefox 52, not dead, > 0.2%"
}
Loading

0 comments on commit 881a6d8

Please sign in to comment.