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 532365f commit 44c85a9Copy full SHA for 44c85a9
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 */
@@ -1722,6 +1724,7 @@ export async function resolveConfig(
1722
1724
cacheDir,
1723
1725
command,
1726
mode,
1727
+ isBundled: config.experimental?.fullBundleMode || isBuild,
1728
isWorker: false,
1729
mainConfig: null,
1730
bundleChain: [],
0 commit comments