Skip to content

Commit 71582a2

Browse files
committed
feat: add ResolvedConfig.isBundled
1 parent 3d0755f commit 71582a2

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
@@ -620,6 +620,8 @@ export interface ResolvedConfig
620620
cacheDir: string
621621
command: 'build' | 'serve'
622622
mode: string
623+
/** `true` when build or full-bundle mode dev */
624+
isBundled: boolean
623625
isWorker: boolean
624626
// in nested worker bundle to find the main config
625627
/** @internal */
@@ -1773,6 +1775,7 @@ export async function resolveConfig(
17731775
cacheDir,
17741776
command,
17751777
mode,
1778+
isBundled: config.experimental?.fullBundleMode || isBuild,
17761779
isWorker: false,
17771780
mainConfig: null,
17781781
bundleChain: [],

0 commit comments

Comments
 (0)