Skip to content

Commit

Permalink
chore: prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed May 28, 2024
1 parent 28e22c6 commit c373251
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/vite/src/module-runner/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,13 +242,13 @@ export class ModuleRunner {
const isCached = !!(typeof cachedModule === 'object' && cachedModule.meta)

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

if ('cache' in fetchedModule) {
if (!cachedModule || !cachedModule.meta) {
Expand Down

0 comments on commit c373251

Please sign in to comment.