@@ -813,6 +813,7 @@ function resolveEnvironmentOptions(
813
813
forceOptimizeDeps : boolean | undefined ,
814
814
logger : Logger ,
815
815
environmentName : string ,
816
+ isFullBundledDev : boolean ,
816
817
// Backward compatibility
817
818
isSsrTargetWebworkerSet ?: boolean ,
818
819
preTransformRequests ?: boolean ,
@@ -875,6 +876,7 @@ function resolveEnvironmentOptions(
875
876
options . build ?? { } ,
876
877
logger ,
877
878
consumer ,
879
+ isFullBundledDev ,
878
880
) ,
879
881
plugins : undefined ! , // to be resolved later
880
882
// will be set by `setOptimizeDepsPluginNames` later
@@ -1444,6 +1446,9 @@ export async function resolveConfig(
1444
1446
config . ssr ?. target === 'webworker' ,
1445
1447
)
1446
1448
1449
+ const isFullBundledDev =
1450
+ command === 'serve' && ! ! config . experimental ?. fullBundleMode
1451
+
1447
1452
// Backward compatibility: merge config.environments.client.resolve back into config.resolve
1448
1453
config . resolve ??= { }
1449
1454
config . resolve . conditions = config . environments . client . resolve ?. conditions
@@ -1460,6 +1465,7 @@ export async function resolveConfig(
1460
1465
inlineConfig . forceOptimizeDeps ,
1461
1466
logger ,
1462
1467
environmentName ,
1468
+ isFullBundledDev ,
1463
1469
config . ssr ?. target === 'webworker' ,
1464
1470
config . server ?. preTransformRequests ,
1465
1471
)
@@ -1483,6 +1489,7 @@ export async function resolveConfig(
1483
1489
config . build ?? { } ,
1484
1490
logger ,
1485
1491
undefined ,
1492
+ isFullBundledDev ,
1486
1493
)
1487
1494
1488
1495
// Backward compatibility: merge config.environments.ssr back into config.ssr
0 commit comments