Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c7edbb8

Browse files
committedMay 4, 2020
refactor(@angular-devkit/build-angular): remove unused rxjs path mapping
This path mapping was used during the transition to rxjs 5 via the use of rxjs-compat package during the Angular 5.x timeframe. Now that the minimum version is 6.x and this transition is complete, these mappings are no longer necessary.
1 parent d008cf2 commit c7edbb8

File tree

1 file changed

+0
-12
lines changed
  • packages/angular_devkit/build_angular/src/angular-cli-files/models/webpack-configs

1 file changed

+0
-12
lines changed
 

‎packages/angular_devkit/build_angular/src/angular-cli-files/models/webpack-configs/common.ts

-12
Original file line numberDiff line numberDiff line change
@@ -349,17 +349,6 @@ export function getCommonConfig(wco: WebpackConfigOptions): Configuration {
349349
const loaderNodeModules = findAllNodeModules(__dirname, projectRoot);
350350
loaderNodeModules.unshift('node_modules');
351351

352-
// Load rxjs path aliases.
353-
// https://github.com/ReactiveX/rxjs/blob/master/doc/pipeable-operators.md#build-and-treeshaking
354-
let alias = {};
355-
try {
356-
const rxjsPathMappingImport = wco.supportES2015
357-
? 'rxjs/_esm2015/path-mapping'
358-
: 'rxjs/_esm5/path-mapping';
359-
const rxPaths = require(require.resolve(rxjsPathMappingImport, { paths: [projectRoot] }));
360-
alias = rxPaths();
361-
} catch {}
362-
363352
const extraMinimizers = [];
364353
if (stylesOptimization) {
365354
extraMinimizers.push(
@@ -488,7 +477,6 @@ export function getCommonConfig(wco: WebpackConfigOptions): Configuration {
488477
extensions: ['.ts', '.tsx', '.mjs', '.js'],
489478
symlinks: !buildOptions.preserveSymlinks,
490479
modules: [wco.tsConfig.options.baseUrl || projectRoot, 'node_modules'],
491-
alias,
492480
plugins: [PnpWebpackPlugin],
493481
},
494482
resolveLoader: {

0 commit comments

Comments
 (0)
Please sign in to comment.