Skip to content

Commit

Permalink
fix: reduce CDN size by tree shaking (#563)
Browse files Browse the repository at this point in the history
  • Loading branch information
williazz authored Jul 3, 2024
1 parent 648b18e commit c2da86e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 17 deletions.
1 change: 0 additions & 1 deletion package-lock.json

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

4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@
},
"devDependencies": {
"@aws-sdk/client-rum": "^3.76.0",
"@babel/plugin-transform-modules-commonjs": "^7.21.2",
"@babel/plugin-transform-runtime": "^7.16.0",
"@babel/preset-env": "~7.20.2",
"@playwright/test": "^1.21.1",
Expand Down Expand Up @@ -146,7 +145,6 @@
]
},
"browserslist": [
"defaults",
"ie 11"
"defaults"
]
}
14 changes: 1 addition & 13 deletions webpack/webpack.common.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,7 @@
const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin');

const babelLoaderOptions = {
presets: [['@babel/preset-env', {}]],
plugins: [
'@babel/plugin-transform-modules-commonjs',
[
'@babel/plugin-transform-runtime',
{
absoluteRuntime: false,
corejs: false,
helpers: true,
regenerator: true
}
]
]
presets: [['@babel/preset-env']]
};

module.exports = {
Expand Down

0 comments on commit c2da86e

Please sign in to comment.