Skip to content

Should emit error when entry chunks generates exports for non-entry modules with preserveEntrySinatures: 'strict' #6449

@hyf0

Description

@hyf0

I remember we haven't add varfication for this, when fixing #6448.

With `includeDependenciesRecursively: false`, depended modules of a group might be left in the entry chunks. It's invalid to export non-entry module from an entry chunk. To avoid this, we strongly recommend to set:
- [`InputOptions.preserveEntrySignatures: false | 'allow-extension'`](/reference/config-options#preserveentrysignatures)

If people use includeDependenciesRecursively: false with forgetting to set InputOptions.preserveEntrySignatures: false | 'allow-extension', it's better to raise errors for invalid cases.

Otherwise, people will think it's expected to create non-entry exports from entry chunks, which is against the intention of InputOptions.preserveEntrySignatures: 'strict'

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions