update resolver options to support `exports` fields (#412)

master
Brad Cornes 2021-09-24 17:47:01 +01:00
parent 1253902e88
commit 365281ca61
1 changed files with 1 additions and 3 deletions

View File

@ -6,9 +6,7 @@ function createResolver(options: Partial<ResolveOptions> = {}): Resolver {
fileSystem: new CachedInputFileSystem(fs, 4000), fileSystem: new CachedInputFileSystem(fs, 4000),
useSyncFileSystemCalls: true, useSyncFileSystemCalls: true,
// cachePredicate: () => false, // cachePredicate: () => false,
exportsFields: [], conditionNames: ['node', 'require'],
conditionNames: ['node'],
extensions: ['.js', '.json', '.node'],
...options, ...options,
}) })
} }