File tree 1 file changed +3
-2
lines changed
packages/@ngtools/webpack/src
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,8 @@ export class PathsPlugin implements Tapable {
96
96
aliasPattern = new RegExp ( `^${ excapedAlias } $` ) ;
97
97
} else {
98
98
let withStarCapturing = excapedAlias . replace ( '\\*' , '(.*)' ) ;
99
- aliasPattern = new RegExp ( `^${ withStarCapturing } ` ) ;
99
+ aliasPattern = withStarCapturing === '(.*)' ?
100
+ new RegExp ( excapedAlias ) : new RegExp ( `^${ withStarCapturing } ` ) ;
100
101
}
101
102
102
103
this . mappings . push ( {
@@ -163,7 +164,7 @@ export class PathsPlugin implements Tapable {
163
164
}
164
165
165
166
createPlugin ( resolver : ResolverPlugin , mapping : any ) : any {
166
- return ( request : any , callback : Callback < any > ) => {
167
+ return ( request : Request , callback : Callback < any > ) => {
167
168
try {
168
169
this . resolve ( resolver , mapping , request , callback ) ;
169
170
} catch ( err ) {
You can’t perform that action at this time.
0 commit comments