Skip to content

Commit 5fd88a6

Browse files
authored
Restore @babel/plugin-transform-class-properties to fix HTML report (#682)
* Restore @babel/plugin-transform-class-properties to fix HTML report * Add changelog entry
1 parent 42d71d8 commit 5fd88a6

File tree

4 files changed

+44
-38
lines changed

4 files changed

+44
-38
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ _Note: Gaps between patch versions are faulty, broken or test releases._
1212

1313
## UNRELEASED
1414

15+
* **Bug Fix**
16+
* Restore `@babel/plugin-transform-class-properties` to fix HTML report ([#682](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/682) by [@valscion](https://github.com/valscion))
17+
1518
## 5.0.0
1619

1720
* **Breaking Change**

package-lock.json

Lines changed: 39 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"devDependencies": {
4949
"@babel/core": "7.26.9",
5050
"@babel/plugin-proposal-decorators": "7.25.9",
51+
"@babel/plugin-transform-class-properties": "^7.27.1",
5152
"@babel/plugin-transform-runtime": "7.26.9",
5253
"@babel/preset-env": "7.26.9",
5354
"@babel/preset-react": "7.26.3",

webpack.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ module.exports = opts => {
7777
plugins: [
7878
'lodash',
7979
['@babel/plugin-proposal-decorators', {legacy: true}],
80+
['@babel/plugin-transform-class-properties', {loose: true}],
8081
['@babel/plugin-transform-runtime', {
8182
useESModules: true
8283
}]

0 commit comments

Comments
 (0)