Skip to content

Commit a7f2e7f

Browse files
clydinhansl
authored andcommitted
fix(@angular/cli): use rxjs path mapping helper in ejected config
1 parent def8f62 commit a7f2e7f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/@angular/cli/tasks/eject.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,10 @@ class JsonWebpackSerializer {
286286
}
287287

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

0 commit comments

Comments
 (0)