Skip to content

Commit 9572acb

Browse files
committed
feat: add ResolvedConfig.isBundled
1 parent c6b1ccd commit 9572acb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/vite/src/node/config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,8 @@ export interface ResolvedConfig
605605
cacheDir: string
606606
command: 'build' | 'serve'
607607
mode: string
608+
/** `true` when build or full-bundle mode dev */
609+
isBundled: boolean
608610
isWorker: boolean
609611
// in nested worker bundle to find the main config
610612
/** @internal */
@@ -1737,6 +1739,7 @@ export async function resolveConfig(
17371739
cacheDir,
17381740
command,
17391741
mode,
1742+
isBundled: config.experimental?.fullBundleMode || isBuild,
17401743
isWorker: false,
17411744
mainConfig: null,
17421745
bundleChain: [],

0 commit comments

Comments
 (0)