We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ResolvedConfig.isBundled
1 parent 0a0c7af commit 00b476fCopy full SHA for 00b476f
packages/vite/src/node/config.ts
@@ -600,6 +600,8 @@ export interface ResolvedConfig
600
cacheDir: string
601
command: 'build' | 'serve'
602
mode: string
603
+ /** `true` when build or full-bundle mode dev */
604
+ isBundled: boolean
605
isWorker: boolean
606
// in nested worker bundle to find the main config
607
/** @internal */
@@ -1730,6 +1732,7 @@ export async function resolveConfig(
1730
1732
cacheDir,
1731
1733
command,
1734
mode,
1735
+ isBundled: config.experimental?.fullBundleMode || isBuild,
1736
isWorker: false,
1737
mainConfig: null,
1738
bundleChain: [],
0 commit comments