source: trip-planner-front/node_modules/@angular-devkit/build-angular/src/webpack/plugins/dedupe-module-resolve-plugin.d.ts@ fa375fe

Last change on this file since fa375fe was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.1 KB
Line 
1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8import { Compiler } from 'webpack';
9export interface DedupeModuleResolvePluginOptions {
10 verbose?: boolean;
11}
12/**
13 * DedupeModuleResolvePlugin is a webpack plugin which dedupes modules with the same name and versions
14 * that are laid out in different parts of the node_modules tree.
15 *
16 * This is needed because Webpack relies on package managers to hoist modules and doesn't have any deduping logic.
17 *
18 * This is similar to how Webpack's 'NormalModuleReplacementPlugin' works
19 * @see https://github.com/webpack/webpack/blob/4a1f068828c2ab47537d8be30d542cd3a1076db4/lib/NormalModuleReplacementPlugin.js#L9
20 */
21export declare class DedupeModuleResolvePlugin {
22 private options?;
23 modules: Map<string, {
24 request: string;
25 resource: string;
26 }>;
27 constructor(options?: DedupeModuleResolvePluginOptions | undefined);
28 apply(compiler: Compiler): void;
29}
Note: See TracBrowser for help on using the repository browser.