Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Split up misc tests * Create basic bundle information test * * Make sure "isEntry" is only true for entry facades * Give precedence to entry facades when deconflicting ids * Add entryModuleId to entry facades * * Mark dynamic entry points as such and separate this from actual entry points * Use internal names for dynamic entry points * Do not generate dynamic entry points that are not used * Add entryModuleIds to both static and dynamic entry points * Add name to output * Separate execution order from chunk colouring * Prefer named export and do not mix for better IDE support * Move chunk colouring behind tree-shaking and add more tests * Use dynamic import tree-shaking information to optimize chunks * Create proper facades for dynamic imports if necessary that are actually used in place of the facaded module. Also no longer inline dynamic imports that are part of the static graph for now as this logic would fail if those are then dynamically imported by another chunk. * As with normal imports, also use single quotes for dynamic imports * Test we provide the right chunk information for dynamic facades * Move facadeChunk property to modules * Refactor entry export generation to prepare for multiple entry modules * Make entryModuleIds a Set on each module * Support manual chunks with multiple facades * Handle name conflicts between dynamic entries in manual chunks * Simplify tracing * A chunk may only ever be facade for a single module to simplify the logic Also delete tests that have been skipped for years. Let's rather make a fresh start should the problem still persists and someone care to address it. * Add information about dynamically imported chunks to bundle * Make "optimizeImports" an experimental option to reflect that the logic is complicated and may not have been properly tested in all situations. * Make sure tree-shaken dynamic imports do not lead to the creation of namespace objects when inlined
- Loading branch information
1 parent
8d5326b
commit c87132b
Showing
280 changed files
with
2,708 additions
and
1,522 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.