We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ResolvedConfig.isBundled
1 parent 3d0755f commit 71582a2Copy full SHA for 71582a2
packages/vite/src/node/config.ts
@@ -620,6 +620,8 @@ export interface ResolvedConfig
620
cacheDir: string
621
command: 'build' | 'serve'
622
mode: string
623
+ /** `true` when build or full-bundle mode dev */
624
+ isBundled: boolean
625
isWorker: boolean
626
// in nested worker bundle to find the main config
627
/** @internal */
@@ -1773,6 +1775,7 @@ export async function resolveConfig(
1773
1775
cacheDir,
1774
1776
command,
1777
mode,
1778
+ isBundled: config.experimental?.fullBundleMode || isBuild,
1779
isWorker: false,
1780
mainConfig: null,
1781
bundleChain: [],
0 commit comments