@@ -818,6 +818,7 @@ function resolveEnvironmentOptions(
818
818
forceOptimizeDeps : boolean | undefined ,
819
819
logger : Logger ,
820
820
environmentName : string ,
821
+ isFullBundledDev : boolean ,
821
822
// Backward compatibility
822
823
isSsrTargetWebworkerSet ?: boolean ,
823
824
preTransformRequests ?: boolean ,
@@ -880,6 +881,7 @@ function resolveEnvironmentOptions(
880
881
options . build ?? { } ,
881
882
logger ,
882
883
consumer ,
884
+ isFullBundledDev ,
883
885
) ,
884
886
plugins : undefined ! , // to be resolved later
885
887
// will be set by `setOptimizeDepsPluginNames` later
@@ -1449,6 +1451,9 @@ export async function resolveConfig(
1449
1451
config . ssr ?. target === 'webworker' ,
1450
1452
)
1451
1453
1454
+ const isFullBundledDev =
1455
+ command === 'serve' && ! ! config . experimental ?. fullBundleMode
1456
+
1452
1457
// Backward compatibility: merge config.environments.client.resolve back into config.resolve
1453
1458
config . resolve ??= { }
1454
1459
config . resolve . conditions = config . environments . client . resolve ?. conditions
@@ -1465,6 +1470,7 @@ export async function resolveConfig(
1465
1470
inlineConfig . forceOptimizeDeps ,
1466
1471
logger ,
1467
1472
environmentName ,
1473
+ isFullBundledDev ,
1468
1474
config . ssr ?. target === 'webworker' ,
1469
1475
config . server ?. preTransformRequests ,
1470
1476
)
@@ -1488,6 +1494,7 @@ export async function resolveConfig(
1488
1494
config . build ?? { } ,
1489
1495
logger ,
1490
1496
undefined ,
1497
+ isFullBundledDev ,
1491
1498
)
1492
1499
1493
1500
// Backward compatibility: merge config.environments.ssr back into config.ssr
0 commit comments