Skip to content

Commit 722f9ed

Browse files
committed
feat: add ResolvedConfig.isBundled
1 parent 0a84dfa commit 722f9ed

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
@@ -599,6 +599,8 @@ export interface ResolvedConfig
599599
cacheDir: string
600600
command: 'build' | 'serve'
601601
mode: string
602+
/** `true` when build or full-bundle mode dev */
603+
isBundled: boolean
602604
isWorker: boolean
603605
// in nested worker bundle to find the main config
604606
/** @internal */
@@ -1717,6 +1719,7 @@ export async function resolveConfig(
17171719
cacheDir,
17181720
command,
17191721
mode,
1722+
isBundled: config.experimental?.fullBundleMode || isBuild,
17201723
isWorker: false,
17211724
mainConfig: null,
17221725
bundleChain: [],

0 commit comments

Comments
 (0)