Skip to content

Commit f2b72c5

Browse files
committed
fix types
1 parent f1345f8 commit f2b72c5

File tree

1 file changed

+1
-5
lines changed
  • packages/angular/webpack-plugins

1 file changed

+1
-5
lines changed

packages/angular/webpack-plugins/utils.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
import { existsSync } from 'fs';
22
import path, { resolve } from 'path';
3-
import { Compiler } from 'webpack';
43

5-
// Extract Resolver type from Webpack types since it is not directly exported
6-
export type ResolverWithOptions = ReturnType<Compiler['resolverFactory']['get']>;
7-
8-
export function tryResolvePackage(resolver: ResolverWithOptions, moduleName: string, nodeModulesDir: string): string | undefined {
4+
export function tryResolvePackage(resolver: any, moduleName: string, nodeModulesDir: string): string | undefined {
95
try {
106
const resolvedPath = resolver.resolveSync(
117
{},

0 commit comments

Comments
 (0)