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

Document webpack change: import.meta.webpackContext #6003

Closed
webpack-bot opened this issue Mar 3, 2022 · 1 comment · Fixed by #6029
Closed

Document webpack change: import.meta.webpackContext #6003

webpack-bot opened this issue Mar 3, 2022 · 1 comment · Fixed by #6029

Comments

@webpack-bot
Copy link

A pull request by @vankop was merged and maintainers requested a documentation change.

See pull request: webpack/webpack#15446


What kind of change does this PR introduce?

feature
closes #15372

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?
import.meta.webpackContext("directory", { recursive: boolean, regExp: RegExp, mode }) returns same as require.context but only for javascript/auto, javascript/esm

@vankop
Copy link
Member

vankop commented Mar 3, 2022

also

add parserOptions.importMetaContext. this option enables/disables import.meta.webpackContext evaluation.

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 a pull request may close this issue.

2 participants