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: add parser options for dynamic import #6139

Closed
webpack-bot opened this issue May 10, 2022 · 0 comments · Fixed by #6145
Closed

Document webpack change: add parser options for dynamic import #6139

webpack-bot opened this issue May 10, 2022 · 0 comments · Fixed by #6145
Assignees

Comments

@webpack-bot
Copy link

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

See pull request: webpack/webpack#15494


What kind of change does this PR introduce?
feature

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?

  • add parser.javascript.dynamicImportMode enum of ["eager", "weak", "lazy", "lazy-once"]
  • add parser.javascript.dynamicImportPrefetch boolean flag for prefetch order
  • add parser.javascript.dynamicImportPreload boolean flag for preload order

this options will be used if there is no magic comments in import() (import(/* webpackMode: "sync" */"blabla")).

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