Skip to content

Add possibility to disable code splitting / chunks generation #2756

@vladshcherbin

Description

@vladshcherbin

Feature Use Case

input: [
  'src/server/one.js',
  'src/server/two.js'
]

The code above will create chunks when both files have same imports. Sometimes it's not desired, for example when each file needs to be self-contained (serverless). It would be nice to be able to turn code splitting off.

Using array in rollup config is not desired as it creates difficulties in working with plugins.

Feature Proposal

Add config option to turn code splitting feature off.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions