File tree 1 file changed +9
-1
lines changed
packages/angular_devkit/build_angular/src/angular-cli-files/plugins
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ interface NormalModuleFactoryRequest {
19
19
} ;
20
20
descriptionFileRoot : string ;
21
21
descriptionFilePath : string ;
22
+ directory ?: boolean ;
23
+ file ?: boolean ;
22
24
}
23
25
24
26
export interface DedupeModuleResolvePluginOptions {
@@ -45,7 +47,13 @@ export class DedupeModuleResolvePlugin {
45
47
return ;
46
48
}
47
49
48
- // Only try to dedupe modules which have a name and a version
50
+ // When either of these properties is undefined. It typically means it's a link.
51
+ // In which case we shouldn't try to dedupe it.
52
+ if ( request . file === undefined || request . directory === undefined ) {
53
+ return ;
54
+ }
55
+
56
+ // Empty name or versions are no valid primary entrypoints of a library
49
57
if ( ! request . descriptionFileData . name || ! request . descriptionFileData . version ) {
50
58
return ;
51
59
}
You can’t perform that action at this time.
0 commit comments