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 2e29be1 commit e741abeCopy full SHA for e741abe
packages/vite/src/node/config.ts
@@ -604,6 +604,8 @@ export interface ResolvedConfig
604
cacheDir: string
605
command: 'build' | 'serve'
606
mode: string
607
+ /** `true` when build or full-bundle mode dev */
608
+ isBundled: boolean
609
isWorker: boolean
610
// in nested worker bundle to find the main config
611
/** @internal */
@@ -1684,6 +1686,7 @@ export async function resolveConfig(
1684
1686
cacheDir,
1685
1687
command,
1688
mode,
1689
+ isBundled: config.experimental?.fullBundleMode || isBuild,
1690
isWorker: false,
1691
mainConfig: null,
1692
bundleChain: [],
0 commit comments