Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: minor refactor
  • Loading branch information
sapphi-red committed Oct 20, 2025
commit 410efa1cae81af15ce16d34e7469a9ca5b39a9ff
20 changes: 9 additions & 11 deletions packages/vite/src/module-runner/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,18 +275,16 @@ export class ModuleRunner {

const fetchedModule = // fast return for established externalized pattern
(
url.startsWith('data:')
url.startsWith('data:') || this.isBuiltin?.(url)
? { externalize: url, type: 'builtin' }
: this.isBuiltin?.(url)
? { externalize: url, type: 'builtin' }
: await this.transport.invoke('fetchModule', [
url,
importer,
{
cached: isCached,
startOffset: this.evaluator.startOffset,
},
])
: await this.transport.invoke('fetchModule', [
url,
importer,
{
cached: isCached,
startOffset: this.evaluator.startOffset,
},
])
) as ResolvedResult

if ('cache' in fetchedModule) {
Expand Down
Loading