Skip to content

Commit

Permalink
Update FAQ: I think it was meant "external" instead of "other-entry.j…
Browse files Browse the repository at this point in the history
…s" (#3756)

* Update faq: other-entry.js -> external

`external` is the one imported twice in `main.js` and later in `other-entry.js`

* Update docs/06-faqs.md

Co-authored-by: Lukas Taegert-Atkinson <lukastaegert@users.noreply.github.com>

Co-authored-by: Lukas Taegert-Atkinson <lukastaegert@users.noreply.github.com>
  • Loading branch information
madacol and lukastaegert committed Sep 1, 2020
1 parent 8a5a638 commit 426c076
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/06-faqs.md
Expand Up @@ -58,7 +58,7 @@ This does not affect code execution order or behaviour, but it will speed up how

With this optimization, a JavaScript engine will discover all transitive dependencies after parsing an entry module, avoiding the waterfall:
1. Load and parse `main.js`. At the end, imports to `other-entry.js` and `external` will be discovered.
2. Load and parse `other-entry.js` and `external`. The import of `other-entry.js` is already loaded and parsed.
2. Load and parse `other-entry.js` and `external`. The import of `external` from `other-entry.js` is already loaded and parsed.
3. Execute `main.js`.

There may be situations where this optimization is not desired, in which case you can turn it off via the [`output.hoistTransitiveImports`](guide/en/#outputhoisttransitiveimports) option. This optimization is also never applied when using the [`output.preserveModules`](guide/en/#outputpreservemodules) option.
Expand Down

0 comments on commit 426c076

Please sign in to comment.