Skip to content

Commit

Permalink
fix(@ngtools/webpack): fix tsconfig paths resolver (#3831)
Browse files Browse the repository at this point in the history
Fixes #3586
  • Loading branch information
dzonatan authored and hansl committed Jan 10, 2017
1 parent 9ad1062 commit c6d1c99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@ngtools/webpack/src/paths-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class PathsPlugin implements Tapable {
if (tsConfig.error) {
throw tsConfig.error;
}
return tsConfig.config;
return tsConfig.config.compilerOptions;
}

constructor(options: PathsPluginOptions) {
Expand Down Expand Up @@ -110,7 +110,7 @@ export class PathsPlugin implements Tapable {
}

apply(resolver: ResolverPlugin): void {
let { baseUrl } = this._compilerOptions;
let baseUrl = this._compilerOptions.baseUrl || '.';

if (baseUrl) {

This comment has been minimized.

Copy link
@petebacondarwin

petebacondarwin Jan 11, 2017

Contributor

@hansl I don't think this line is needed any more

resolver.apply(new ModulesInRootPlugin('module', this._absoluteBaseUrl, 'resolve'));
Expand Down

0 comments on commit c6d1c99

Please sign in to comment.