Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@alexander-akait
Copy link
Member

@alexander-akait alexander-akait commented Feb 6, 2025

What kind of change does this PR introduce?

feature, allow to ignore reqiore.resolve using /* webpackIgnore: true */ comment

fixes #19132

Did you add tests for your changes?

Yes

Does this PR introduce a breaking change?

No

What needs to be documented once your changes are merged?

Yes, need to show an example

const x = require.resolve(/* webpackIgnore: true */ 'x');

https://webpack.js.org/configuration/module/#moduleparserjavascriptcommonjsmagiccomments

@webpack-bot
Copy link
Contributor

For maintainers only:

  • This needs to be documented (issue in webpack/webpack.js.org will be filed when merged)
  • This needs to be backported to webpack 4 (issue will be created when merged)

@alexander-akait alexander-akait merged commit 80826c5 into main Feb 6, 2025
60 of 63 checks passed
@alexander-akait alexander-akait deleted the issue-19132 branch February 6, 2025 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow ignore magic comment on require.resolve

3 participants