Skip to content

Commit

Permalink
fix(@angular/cli): use rxjs path mapping helper in ejected config
Browse files Browse the repository at this point in the history
  • Loading branch information
clydin authored and dond2clouds committed Apr 23, 2018
1 parent cd99d51 commit 56d7421
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/@angular/cli/tasks/eject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,10 @@ class JsonWebpackSerializer {
}

private _resolveReplacer(value: any) {
this.variableImports['rxjs/_esm5/path-mapping'] = 'rxPaths';
return Object.assign({}, value, {
modules: value.modules.map((x: string) => './' + path.relative(this._root, x))
modules: value.modules.map((x: string) => './' + path.relative(this._root, x)),
alias: this._escape('rxPaths()')
});
}

Expand Down

0 comments on commit 56d7421

Please sign in to comment.