File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -1740,6 +1740,15 @@ export async function resolveConfig(
1740
1740
)
1741
1741
}
1742
1742
1743
+ const experimental = mergeWithDefaults (
1744
+ configDefaults . experimental ,
1745
+ config . experimental ?? { } ,
1746
+ )
1747
+ if ( command === 'serve' && experimental . fullBundleMode ) {
1748
+ // full bundle mode does not support experimental.renderBuiltUrl
1749
+ experimental . renderBuiltUrl = undefined
1750
+ }
1751
+
1743
1752
resolved = {
1744
1753
configFile : configFile ? normalizePath ( configFile ) : undefined ,
1745
1754
configFileDependencies : configFileDependencies . map ( ( name ) =>
@@ -1802,10 +1811,7 @@ export async function resolveConfig(
1802
1811
packageCache,
1803
1812
worker : resolvedWorkerOptions ,
1804
1813
appType : config . appType ?? 'spa' ,
1805
- experimental : mergeWithDefaults (
1806
- configDefaults . experimental ,
1807
- config . experimental ?? { } ,
1808
- ) ,
1814
+ experimental,
1809
1815
future :
1810
1816
config . future === 'warn'
1811
1817
? ( {
Original file line number Diff line number Diff line change @@ -473,7 +473,7 @@ async function fileToBuiltUrl(
473
473
throw new Error ( 'unreachable' )
474
474
} ,
475
475
)
476
- if ( typeof outputUrl === 'object' ) throw new Error ( 'not supported ' )
476
+ if ( typeof outputUrl === 'object' ) throw new Error ( 'unreachable ' )
477
477
url = outputUrl
478
478
} else {
479
479
url = `__VITE_ASSET__${ referenceId } __${ postfix ? `$_${ postfix } __` : `` } `
You can’t perform that action at this time.
0 commit comments