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
Description
Currently
isBundledis available as a top level config property that affects what plugins are defined:vite/packages/vite/src/node/config.ts
Line 1892 in 6daa10f
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, nottopLevelConfig.isBundled.Suggested solution
Make
isBundled,bundledorfullBundlea property onenvironments.name.dev:Alternative
We can say that full bundle mode can only be configured for all environments at the same time.
Additional context
No response
Validations