Skip to content

Commit c41c423

Browse files
committed
wip: disable renderBuiltUrl in dev
1 parent 17938bd commit c41c423

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

packages/vite/src/node/config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1787,6 +1787,10 @@ export async function resolveConfig(
17871787
configDefaults.experimental,
17881788
config.experimental ?? {},
17891789
)
1790+
if (command === 'serve' && experimental.fullBundleMode) {
1791+
// full bundle mode does not support experimental.renderBuiltUrl
1792+
experimental.renderBuiltUrl = undefined
1793+
}
17901794

17911795
resolved = {
17921796
configFile: configFile ? normalizePath(configFile) : undefined,

packages/vite/src/node/plugins/asset.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ async function fileToBuiltUrl(
473473
throw new Error('unreachable')
474474
},
475475
)
476-
if (typeof outputUrl === 'object') throw new Error('not supported')
476+
if (typeof outputUrl === 'object') throw new Error('unreachable')
477477
url = outputUrl
478478
} else {
479479
url = `__VITE_ASSET__${referenceId}__${postfix ? `$_${postfix}__` : ``}`

0 commit comments

Comments
 (0)