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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document webpack change: support destructuring assignment in import.meta #6759

Closed
webpack-bot opened this issue Apr 15, 2023 · 0 comments 路 Fixed by #6761
Closed

Document webpack change: support destructuring assignment in import.meta #6759

webpack-bot opened this issue Apr 15, 2023 · 0 comments 路 Fixed by #6761

Comments

@webpack-bot
Copy link

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

See pull request: webpack/webpack#16996


other plugins?

Summary

馃 Generated by Copilot at 730dab9

This pull request improves the ImportMetaPlugin class to handle import.meta properties more accurately and efficiently, and adds tests for the new features and the existing behavior. It also warns users when they access import.meta directly, which is not supported by webpack.

Details

馃 Generated by Copilot at 730dab9

  • Add helper functions for generating import.meta code (link)
  • Support destructuring assignment for import.meta properties (link, link, link)
  • Simplify import.meta expression handling by using helper functions (link, link, link, link)
  • Move webpackVersion variable to the top of ImportMetaPlugin.js (link)
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.

1 participant