Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
({ resolve: configResolve }) => (
ResolverFactory.createResolver({
fileSystem: new SyncNodeJsInputFileSystem(),
...configResolve,
// enhanced-resolve does not support modulesDirectories, lets add 2 modules
...(
configResolve && (configResolve.modules || configResolve.modulesDirectories) && {
modules: [
...(configResolve.modules || []),
...(configResolve.modulesDirectories || []),
],
}
),
})
)
);