From 3f0c83f9e129b6dfa1d5d5cf4f0fd005cd24e337 Mon Sep 17 00:00:00 2001 From: Marco D'Agostini Date: Mon, 31 Aug 2020 22:27:07 -0500 Subject: [PATCH 1/2] Update faq: other-entry.js -> external `external` is the one imported twice in `main.js` and later in `other-entry.js` --- docs/06-faqs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/06-faqs.md b/docs/06-faqs.md index fa902b4afa0..b5bd5103169 100755 --- a/docs/06-faqs.md +++ b/docs/06-faqs.md @@ -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` 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. From a1fcb972569d5e75c6ebdbfcd18b9c2ac2febef2 Mon Sep 17 00:00:00 2001 From: Marco D'Agostini Date: Mon, 31 Aug 2020 23:31:49 -0500 Subject: [PATCH 2/2] Update docs/06-faqs.md Co-authored-by: Lukas Taegert-Atkinson --- docs/06-faqs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/06-faqs.md b/docs/06-faqs.md index b5bd5103169..5628563d383 100755 --- a/docs/06-faqs.md +++ b/docs/06-faqs.md @@ -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 `external` 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.