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 0a84dfa commit 722f9edCopy full SHA for 722f9ed
packages/vite/src/node/config.ts
@@ -599,6 +599,8 @@ export interface ResolvedConfig
599
cacheDir: string
600
command: 'build' | 'serve'
601
mode: string
602
+ /** `true` when build or full-bundle mode dev */
603
+ isBundled: boolean
604
isWorker: boolean
605
// in nested worker bundle to find the main config
606
/** @internal */
@@ -1717,6 +1719,7 @@ export async function resolveConfig(
1717
1719
cacheDir,
1718
1720
command,
1721
mode,
1722
+ isBundled: config.experimental?.fullBundleMode || isBuild,
1723
isWorker: false,
1724
mainConfig: null,
1725
bundleChain: [],
0 commit comments