Skip to content

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

Closed
@webpack-bot

Description

@webpack-bot

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")).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions