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),
|
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,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue