@@ -839,6 +839,7 @@ function resolveEnvironmentOptions(
839
839
forceOptimizeDeps : boolean | undefined ,
840
840
logger : Logger ,
841
841
environmentName : string ,
842
+ isFullBundledDev : boolean ,
842
843
// Backward compatibility
843
844
isSsrTargetWebworkerSet ?: boolean ,
844
845
preTransformRequests ?: boolean ,
@@ -901,6 +902,7 @@ function resolveEnvironmentOptions(
901
902
options . build ?? { } ,
902
903
logger ,
903
904
consumer ,
905
+ isFullBundledDev ,
904
906
) ,
905
907
plugins : undefined ! , // to be resolved later
906
908
// will be set by `setOptimizeDepsPluginNames` later
@@ -1485,6 +1487,9 @@ export async function resolveConfig(
1485
1487
config . ssr ?. target === 'webworker' ,
1486
1488
)
1487
1489
1490
+ const isFullBundledDev =
1491
+ command === 'serve' && ! ! config . experimental ?. fullBundleMode
1492
+
1488
1493
// Backward compatibility: merge config.environments.client.resolve back into config.resolve
1489
1494
config . resolve ??= { }
1490
1495
config . resolve . conditions = config . environments . client . resolve ?. conditions
@@ -1501,6 +1506,7 @@ export async function resolveConfig(
1501
1506
inlineConfig . forceOptimizeDeps ,
1502
1507
logger ,
1503
1508
environmentName ,
1509
+ isFullBundledDev ,
1504
1510
config . ssr ?. target === 'webworker' ,
1505
1511
config . server ?. preTransformRequests ,
1506
1512
)
@@ -1524,6 +1530,7 @@ export async function resolveConfig(
1524
1530
config . build ?? { } ,
1525
1531
logger ,
1526
1532
undefined ,
1533
+ isFullBundledDev ,
1527
1534
)
1528
1535
1529
1536
// Backward compatibility: merge config.environments.ssr back into config.ssr
0 commit comments