You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 84fd011
Browse filesBrowse the repository at this point in the historyBrowse files
fix: name an anonymous export default class before its static initializers (#21910)
* fix: name an anonymous `export default class` before its static initializers
A static initializer reads the class name during ClassDefinitionEvaluation,
so the fix-up emitted after the class expression was already too late and
the name read back as `__WEBPACK_DEFAULT_EXPORT__`. The class is now created
as a property of that name instead, which also drops the runtime helper.
* chore: format CHANGELOG.md
`fmt:check` is red on `main` since the last release regenerated the file;
ported here so this branch is green, and a no-op once `main` carries it.
* test: skip the class-static-initializer case below Node 12
The fixture observes the name from a class static field, so Node 10 cannot
parse the bundle the harness executes. The fix itself needs no new syntax.
0 commit comments