How to use the enhanced-resolve/lib/getPaths function in enhanced-resolve

To help you get started, we’ve selected a few enhanced-resolve examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github DefinitelyTyped / DefinitelyTyped / enhanced-resolve / lib / lib-tests.ts View on Github external
const dplugin = new DescriptionFilePlugin('string', 'string', 'string');

DescriptionFileUtils.cdUp('./lib');
DescriptionFileUtils.getField({}, 'hi');
DescriptionFileUtils.loadDescriptionFile(resolve.ResolverFactory.createResolver({
    extensions: [''],
    fileSystem: {} as AbstractInputFileSystem
}), './lib', ['file'], function () { });

const dplugin1 = new DirectoryExistsPlugin('string', 'string');

const fplugin = new FileExistsPlugin('string', 's');

const fplugin2 = new FileKindPlugin('string', 's');

getPaths('./lib');

basename('./lib');

globToRegExp('lib/**');

const jplugin = new JoinRequestPlugin('string', 's');

const lplugin = new LogInfoPlugin('string');

const mplugin = new MainFieldPlugin('string', {
    name: 'hi',
    forceRelative: false
}, 's');

const mplugin2 = new ModuleAppendPlugin('string', 'ap', 's');