Skip to content

Initial flag does not take into account lazy loading #400

Closed
@skovhus

Description

@skovhus

Currently the plugin detects if a chunk is initial based on the [isDynamicEntry information from rollup](https://github.com/relative-ci/rollup-plugin-webpack-stats/blob/master/src/transform.ts#L140). This is a pretty broken heuristic as a chunk might be synchronously imported by a chunk that is dynamic.

Example

A (initial) lazy loads B that synchronously loads C.

Expected: C should not be marked initial
Currently: C is marked as initial

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions