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 c6b1ccd commit 9572acbCopy full SHA for 9572acb
packages/vite/src/node/config.ts
@@ -605,6 +605,8 @@ export interface ResolvedConfig
605
cacheDir: string
606
command: 'build' | 'serve'
607
mode: string
608
+ /** `true` when build or full-bundle mode dev */
609
+ isBundled: boolean
610
isWorker: boolean
611
// in nested worker bundle to find the main config
612
/** @internal */
@@ -1737,6 +1739,7 @@ export async function resolveConfig(
1737
1739
cacheDir,
1738
1740
command,
1741
mode,
1742
+ isBundled: config.experimental?.fullBundleMode || isBuild,
1743
isWorker: false,
1744
mainConfig: null,
1745
bundleChain: [],
0 commit comments