Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 4.10.0 breaks compatibility with older browsers that do not have Object.entries #4543

Closed
weijarz opened this issue Aug 19, 2022 · 1 comment · Fixed by #4544
Closed
Labels

Comments

@weijarz
Copy link

weijarz commented Aug 19, 2022

Bug report

Actual Behavior

Old browsers throws exception on 4.10.0: no method Object.entries
Version 4.9.x works.

The problem is with this file:

const enabledFeatures = Object.entries(features);

core-js polyfill does not work because this file was loaded before it.

Expected Behavior

How Do We Reproduce?

Please paste the results of npx webpack-cli info here, and mention other relevant information

System:
OS: Linux 5.15 Arch Linux
CPU: (4) x64 Intel(R) Core(TM) i3-5020U CPU @ 2.20GHz
Memory: 5.07 GB / 7.67 GB
Binaries:
Node: 16.16.0 - /usr/bin/node
npm: 8.15.1 - /usr/bin/npm
Browsers:
Firefox: 103.0.2
Packages:
css-loader: ^6.5.1 => 6.7.1
file-loader: ^6.2.0 => 6.2.0
postcss-loader: ^7.0.1 => 7.0.1
replace-bundle-webpack-plugin: ^1.0.0 => 1.0.0
source-map-loader: ^4.0.0 => 4.0.0
style-loader: ^3.3.1 => 3.3.1
ts-loader: ^9.2.6 => 9.3.1
url-loader: ^4.1.1 => 4.1.1
webpack: ^5.74.0 => 5.74.0
webpack-bundle-analyzer: ^4.5.0 => 4.6.0
webpack-cli: ^4.10.0 => 4.10.0
webpack-dev-server: ~4.10.0 => 4.10.0

@snitin315
Copy link
Member

Thanks for the report. I'll look into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants