-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Closed
Description
A pull request by @sokra was merged and maintainers requested a documentation change.
See pull request: webpack/webpack#11439
- add support for async anonymous entrypoints from inside the codebase
- add worker example
- move entry options into Entrypoint and receive them from there
This adds support to create entrypoints from AsyncDependenciesBlocks. Might also be useful for other scenarios (@timneutkens interactive)
What kind of change does this PR introduce?
feature
Did you add tests for your changes?
yes
Does this PR introduce a breaking change?
yes
What needs to be documented once your changes are merged?
- new option
ouput.workerChunkLoadingcontrols the chunk loading of workers (default chosen based onoutput.chunkLoading) - some syntax triggers webpack to compile "..." as new entrypoint with
ouput.workerChunkLoadingas chunk loading mechnismnew Worker(new URL("...", import.meta.url), ...)with optionalimport { Worker } from "worker_threads"navigator.serviceWorker.register(new URL("...", import.meta.url), ...)
Metadata
Metadata
Assignees
Labels
No labels