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 @@ -1776,6 +1776,15 @@ export async function resolveConfig(
1776
1776
)
1777
1777
}
1778
1778
1779
+ const experimental = mergeWithDefaults (
1780
+ configDefaults . experimental ,
1781
+ config . experimental ?? { } ,
1782
+ )
1783
+ if ( command === 'serve' && experimental . fullBundleMode ) {
1784
+ // full bundle mode does not support experimental.renderBuiltUrl
1785
+ experimental . renderBuiltUrl = undefined
1786
+ }
1787
+
1779
1788
resolved = {
1780
1789
configFile : configFile ? normalizePath ( configFile ) : undefined ,
1781
1790
configFileDependencies : configFileDependencies . map ( ( name ) =>
@@ -1838,10 +1847,7 @@ export async function resolveConfig(
1838
1847
packageCache,
1839
1848
worker : resolvedWorkerOptions ,
1840
1849
appType : config . appType ?? 'spa' ,
1841
- experimental : mergeWithDefaults (
1842
- configDefaults . experimental ,
1843
- config . experimental ?? { } ,
1844
- ) ,
1850
+ experimental,
1845
1851
future :
1846
1852
config . future === 'warn'
1847
1853
? ( {
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