mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-21 05:52:41 +08:00
refactor(@angular-devkit/build-angular): remove nonexistent argument from rxjs path mapping call
The rxjs path mapping function does not have any parameters and has not since version 5.5.0 which is not supported.
This commit is contained in:
parent
d2e57e016d
commit
d918af3935
@ -36,7 +36,7 @@ import { NamedLazyChunksPlugin } from '../../plugins/named-chunks-plugin';
|
||||
import { OptimizeCssWebpackPlugin } from '../../plugins/optimize-css-webpack-plugin';
|
||||
import { ScriptsWebpackPlugin } from '../../plugins/scripts-webpack-plugin';
|
||||
import { WebpackRollupLoader } from '../../plugins/webpack';
|
||||
import { findAllNodeModules, findUp } from '../../utilities/find-up';
|
||||
import { findAllNodeModules } from '../../utilities/find-up';
|
||||
import { WebpackConfigOptions } from '../build-options';
|
||||
import { getEsVersionForFileName, getOutputHashFormat, normalizeExtraEntryPoints } from './utils';
|
||||
|
||||
@ -55,11 +55,6 @@ export function getCommonConfig(wco: WebpackConfigOptions): Configuration {
|
||||
vendor: vendorSourceMap,
|
||||
} = buildOptions.sourceMap;
|
||||
|
||||
const nodeModules = findUp('node_modules', projectRoot);
|
||||
if (!nodeModules) {
|
||||
throw new Error('Cannot locate node_modules directory.');
|
||||
}
|
||||
|
||||
const extraPlugins: Plugin[] = [];
|
||||
const extraRules: Rule[] = [];
|
||||
const entryPoints: { [key: string]: string[] } = {};
|
||||
@ -363,7 +358,7 @@ export function getCommonConfig(wco: WebpackConfigOptions): Configuration {
|
||||
? 'rxjs/_esm2015/path-mapping'
|
||||
: 'rxjs/_esm5/path-mapping';
|
||||
const rxPaths = require(require.resolve(rxjsPathMappingImport, { paths: [projectRoot] }));
|
||||
alias = rxPaths(nodeModules);
|
||||
alias = rxPaths();
|
||||
} catch {}
|
||||
|
||||
const extraMinimizers = [];
|
||||
|
Loading…
x
Reference in New Issue
Block a user