Skip to content

Commit 00b476f

Browse files
committed
feat: add ResolvedConfig.isBundled
1 parent 0a0c7af commit 00b476f

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
@@ -600,6 +600,8 @@ export interface ResolvedConfig
600600
cacheDir: string
601601
command: 'build' | 'serve'
602602
mode: string
603+
/** `true` when build or full-bundle mode dev */
604+
isBundled: boolean
603605
isWorker: boolean
604606
// in nested worker bundle to find the main config
605607
/** @internal */
@@ -1730,6 +1732,7 @@ export async function resolveConfig(
17301732
cacheDir,
17311733
command,
17321734
mode,
1735+
isBundled: config.experimental?.fullBundleMode || isBuild,
17331736
isWorker: false,
17341737
mainConfig: null,
17351738
bundleChain: [],

0 commit comments

Comments
 (0)