1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.createDefaultResolver = void 0;
|
4 |
|
5 |
|
6 | const ResolverFactory = require('enhanced-resolve/lib/ResolverFactory');
|
7 | const resolverContext = {};
|
8 | function createDefaultResolver(fileSystem, resolveOptions) {
|
9 | const eResolver = ResolverFactory.createResolver({
|
10 | useSyncFileSystemCalls: true,
|
11 | fileSystem,
|
12 | ...resolveOptions,
|
13 | });
|
14 | return (directoryPath, request) => eResolver.resolveSync(resolverContext, directoryPath, request);
|
15 | }
|
16 | exports.createDefaultResolver = createDefaultResolver;
|
17 |
|
\ | No newline at end of file |