Skip to content

Commit c2da86e

Browse files
authored
fix: reduce CDN size by tree shaking (#563)
1 parent 648b18e commit c2da86e

File tree

3 files changed

+2
-17
lines changed

3 files changed

+2
-17
lines changed

package-lock.json

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@
6161
},
6262
"devDependencies": {
6363
"@aws-sdk/client-rum": "^3.76.0",
64-
"@babel/plugin-transform-modules-commonjs": "^7.21.2",
6564
"@babel/plugin-transform-runtime": "^7.16.0",
6665
"@babel/preset-env": "~7.20.2",
6766
"@playwright/test": "^1.21.1",
@@ -146,7 +145,6 @@
146145
]
147146
},
148147
"browserslist": [
149-
"defaults",
150-
"ie 11"
148+
"defaults"
151149
]
152150
}

webpack/webpack.common.js

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,7 @@
11
const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin');
22

33
const babelLoaderOptions = {
4-
presets: [['@babel/preset-env', {}]],
5-
plugins: [
6-
'@babel/plugin-transform-modules-commonjs',
7-
[
8-
'@babel/plugin-transform-runtime',
9-
{
10-
absoluteRuntime: false,
11-
corejs: false,
12-
helpers: true,
13-
regenerator: true
14-
}
15-
]
16-
]
4+
presets: [['@babel/preset-env']]
175
};
186

197
module.exports = {

0 commit comments

Comments
 (0)