update resolver options to support `exports` fields (#412)
parent
1253902e88
commit
365281ca61
|
@ -6,9 +6,7 @@ function createResolver(options: Partial<ResolveOptions> = {}): Resolver {
|
|||
fileSystem: new CachedInputFileSystem(fs, 4000),
|
||||
useSyncFileSystemCalls: true,
|
||||
// cachePredicate: () => false,
|
||||
exportsFields: [],
|
||||
conditionNames: ['node'],
|
||||
extensions: ['.js', '.json', '.node'],
|
||||
conditionNames: ['node', 'require'],
|
||||
...options,
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue