Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion packages/vitest/src/node/cache/fsModuleCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class FileSystemModuleCache {
private rootCache: string
private metadataFilePath: string

private version = '1.0.0-beta.1'
private version = '1.0.0-beta.2'
private fsCacheRoots = new WeakMap<ResolvedConfig, string>()
private fsEnvironmentHashMap = new WeakMap<DevEnvironment, string>()
private fsCacheKeyGenerators = new Set<CacheKeyIdGenerator>()
Expand Down
10 changes: 5 additions & 5 deletions packages/vitest/src/node/environments/fetchModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ class ModuleFetcher {
return { cache: true }
}

const externalize = await this.resolver.shouldExternalize(moduleGraphModule.id!)
if (externalize) {
return { externalize, type: 'module' }
}

const cachePath = await this.getCachePath(
environment,
moduleGraphModule,
Expand Down Expand Up @@ -271,11 +276,6 @@ class ModuleFetcher {
moduleGraphModule: EnvironmentModuleNode,
options?: FetchFunctionOptions,
): Promise<FetchResult> {
const externalize = await this.resolver.shouldExternalize(moduleGraphModule.id!)
if (externalize) {
return { externalize, type: 'module' }
}

const moduleRunnerModule = await fetchModule(
environment,
url,
Expand Down
Loading