@@ -825,6 +825,7 @@ function resolveEnvironmentOptions(
825
825
forceOptimizeDeps : boolean | undefined ,
826
826
logger : Logger ,
827
827
environmentName : string ,
828
+ isFullBundledDev : boolean ,
828
829
// Backward compatibility
829
830
isSsrTargetWebworkerSet ?: boolean ,
830
831
preTransformRequests ?: boolean ,
@@ -887,6 +888,7 @@ function resolveEnvironmentOptions(
887
888
options . build ?? { } ,
888
889
logger ,
889
890
consumer ,
891
+ isFullBundledDev ,
890
892
) ,
891
893
plugins : undefined ! , // to be resolved later
892
894
// will be set by `setOptimizeDepsPluginNames` later
@@ -1456,6 +1458,9 @@ export async function resolveConfig(
1456
1458
config . ssr ?. target === 'webworker' ,
1457
1459
)
1458
1460
1461
+ const isFullBundledDev =
1462
+ command === 'serve' && ! ! config . experimental ?. fullBundleMode
1463
+
1459
1464
// Backward compatibility: merge config.environments.client.resolve back into config.resolve
1460
1465
config . resolve ??= { }
1461
1466
config . resolve . conditions = config . environments . client . resolve ?. conditions
@@ -1472,6 +1477,7 @@ export async function resolveConfig(
1472
1477
inlineConfig . forceOptimizeDeps ,
1473
1478
logger ,
1474
1479
environmentName ,
1480
+ isFullBundledDev ,
1475
1481
config . ssr ?. target === 'webworker' ,
1476
1482
config . server ?. preTransformRequests ,
1477
1483
)
@@ -1495,6 +1501,7 @@ export async function resolveConfig(
1495
1501
config . build ?? { } ,
1496
1502
logger ,
1497
1503
undefined ,
1504
+ isFullBundledDev ,
1498
1505
)
1499
1506
1500
1507
// Backward compatibility: merge config.environments.ssr back into config.ssr
0 commit comments