diff --git a/packages/vite/src/module-runner/runner.ts b/packages/vite/src/module-runner/runner.ts index 9c9bfc7d5436fe..7ee5c126ceb3b2 100644 --- a/packages/vite/src/module-runner/runner.ts +++ b/packages/vite/src/module-runner/runner.ts @@ -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) {