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

fix: Hide require.resolve from bundlers #4660

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

timfish
Copy link
Contributor

@timfish timfish commented Apr 25, 2024

Which problem is this PR solving?

Bundlers pick up and attempt to parse require.resolve and give warnings or errors because the module name is dynamic.
See #4173 (comment)

Fixes #4173

Short description of the changes

I proposed this fix here #4173 (comment)

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

@timfish timfish requested a review from a team as a code owner April 25, 2024 11:15
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 error: Critical dependency: the request of a dependency is an expression
1 participant