Skip to content

Commit c6d1c99

Browse files
dzonatanhansl
authored andcommitted
fix(@ngtools/webpack): fix tsconfig paths resolver (#3831)
Fixes #3586
1 parent 9ad1062 commit c6d1c99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/@ngtools/webpack/src/paths-plugin.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export class PathsPlugin implements Tapable {
5454
if (tsConfig.error) {
5555
throw tsConfig.error;
5656
}
57-
return tsConfig.config;
57+
return tsConfig.config.compilerOptions;
5858
}
5959

6060
constructor(options: PathsPluginOptions) {
@@ -110,7 +110,7 @@ export class PathsPlugin implements Tapable {
110110
}
111111

112112
apply(resolver: ResolverPlugin): void {
113-
let { baseUrl } = this._compilerOptions;
113+
let baseUrl = this._compilerOptions.baseUrl || '.';
114114

115115
if (baseUrl) {
116116
resolver.apply(new ModulesInRootPlugin('module', this._absoluteBaseUrl, 'resolve'));

0 commit comments

Comments
 (0)