Skip to content

Commit 44c85a9

Browse files
committed
feat: add ResolvedConfig.isBundled
1 parent 532365f commit 44c85a9

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 */
@@ -1722,6 +1724,7 @@ export async function resolveConfig(
17221724
cacheDir,
17231725
command,
17241726
mode,
1727+
isBundled: config.experimental?.fullBundleMode || isBuild,
17251728
isWorker: false,
17261729
mainConfig: null,
17271730
bundleChain: [],

0 commit comments

Comments
 (0)