Skip to content

Commit

Permalink
Build system: adjust babel configuration to reduce bundle size (prebi…
Browse files Browse the repository at this point in the history
  • Loading branch information
dgirardi authored and JacobKlein26 committed Feb 8, 2023
1 parent 0947267 commit d4f204c
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 80 deletions.
2 changes: 1 addition & 1 deletion babelConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = function (options = {}) {
],
'plugins': [
[path.resolve(__dirname, './plugins/pbjsGlobals.js'), options],
useLocal('babel-plugin-transform-object-assign'),
[useLocal('@babel/plugin-transform-runtime')],
],
}
}
161 changes: 83 additions & 78 deletions package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@
"dependencies": {
"@babel/core": "^7.16.7",
"@babel/preset-env": "^7.16.8",
"babel-plugin-transform-object-assign": "^6.22.0",
"@babel/runtime": "^7.18.9",
"@babel/plugin-transform-runtime": "^7.18.9",
"core-js": "^3.13.0",
"core-js-pure": "^3.13.0",
"criteo-direct-rsa-validate": "^1.1.0",
Expand Down

0 comments on commit d4f204c

Please sign in to comment.