Skip to content

Conversation

@timfish
Copy link
Contributor

@timfish timfish commented Oct 16, 2025

Using require('./package.json').bugs.url causes warnings from bundlers when they don't have JSON support enabled.

Even if a bundler does support reading package.json, this will result in the entire file being included in the bundle.

@timfish timfish merged commit b97d3fe into nodejs:main Oct 17, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

webpack warning since 7.5.0

3 participants