Skip to content

Commit e741abe

Browse files
committed
feat: add ResolvedConfig.isBundled
1 parent 2e29be1 commit e741abe

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
@@ -604,6 +604,8 @@ export interface ResolvedConfig
604604
cacheDir: string
605605
command: 'build' | 'serve'
606606
mode: string
607+
/** `true` when build or full-bundle mode dev */
608+
isBundled: boolean
607609
isWorker: boolean
608610
// in nested worker bundle to find the main config
609611
/** @internal */
@@ -1684,6 +1686,7 @@ export async function resolveConfig(
16841686
cacheDir,
16851687
command,
16861688
mode,
1689+
isBundled: config.experimental?.fullBundleMode || isBuild,
16871690
isWorker: false,
16881691
mainConfig: null,
16891692
bundleChain: [],

0 commit comments

Comments
 (0)