Skip to content

Commit 13ebe46

Browse files
authored
Fix Bundle size test after webpack 5 update (#10502)
PR #10186 upgraded to webpack 5, which caused the output of the bundle-size-test to be all 23 bytes with all export removed. See #10186 (comment) Adding `output.library` in the webpack config fixes the issue.
1 parent 1b0c8ea commit 13ebe46

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: examples/utils/bundle-size-tests/webpack.config.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ module.exports = {
4040
extensions: ['.tsx', '.ts', '.js'],
4141
},
4242
output: {
43-
path: path.resolve(__dirname, 'dist')
43+
path: path.resolve(__dirname, 'dist'),
44+
library: 'bundle',
4445
},
4546
node: false,
4647
plugins: [

0 commit comments

Comments
 (0)