Skip to content

Make isBundled environment specific #22086

@sheremet-va

Description

@sheremet-va

Description

Currently isBundled is available as a top level config property that affects what plugins are defined:

isBundled: config.experimental?.bundledDev || isBuild,

This makes it hard to opt-in into full bundle SSR. It would be nice to have this be available only as environment.config.isBundled, not topLevelConfig.isBundled.

Suggested solution

Make isBundled, bundled or fullBundle a property on environments.name.dev:

export default defineConfig({
  environments: {
    ssr: {
      dev: {
        bundled: true,
      },
    },
  },
})

Alternative

We can say that full bundle mode can only be configured for all environments at the same time.

Additional context

No response

Validations

Metadata

Metadata

Assignees

No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions