Skip to content

Commit cee5c31

Browse files
alan-agius4clydin
authored andcommitted
build: update @types/webpack-sources to version ^1.4.2
1 parent dd58aa6 commit cee5c31

File tree

4 files changed

+14
-5
lines changed

4 files changed

+14
-5
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
"@types/uuid": "^8.0.0",
122122
"@types/webpack": "^4.32.1",
123123
"@types/webpack-dev-server": "^3.1.7",
124-
"@types/webpack-sources": "^0.1.5",
124+
"@types/webpack-sources": "^1.4.2",
125125
"@yarnpkg/lockfile": "1.1.0",
126126
"ajv": "6.12.0",
127127
"ansi-colors": "4.1.1",

packages/angular_devkit/build_angular/plugins/webpack/analytics.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ import {
1212
Stats,
1313
compilation,
1414
} from 'webpack';
15-
import { Source } from 'webpack-sources';
15+
import { OriginalSource } from 'webpack-sources';
1616

1717
const NormalModule = require('webpack/lib/NormalModule');
1818

1919
interface NormalModule extends Module {
20-
_source?: Source | null;
20+
_source?: OriginalSource | null;
2121
resource?: string;
2222
}
2323

packages/angular_devkit/build_angular/src/angular-cli-files/plugins/optimize-css-webpack-plugin.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import * as cssNano from 'cssnano';
99
import { ProcessOptions, Result } from 'postcss';
1010
import { Compiler, compilation } from 'webpack';
11-
import { RawSource, Source, SourceMapSource } from 'webpack-sources';
11+
import { OriginalSource, RawSource, SourceMapSource } from 'webpack-sources';
1212
import { addWarning } from '../../utils/webpack-diagnostics';
1313

1414
export interface OptimizeCssWebpackPluginOptions {
@@ -58,7 +58,7 @@ export class OptimizeCssWebpackPlugin {
5858
const actions = files
5959
.filter(file => this._options.test(file))
6060
.map(async file => {
61-
const asset = compilation.assets[file] as Source;
61+
const asset = compilation.assets[file] as OriginalSource;
6262
if (!asset) {
6363
return;
6464
}

yarn.lock

+9
Original file line numberDiff line numberDiff line change
@@ -2006,6 +2006,15 @@
20062006
"@types/source-list-map" "*"
20072007
source-map "^0.6.1"
20082008

2009+
"@types/webpack-sources@^1.4.2":
2010+
version "1.4.2"
2011+
resolved "https://registry.yarnpkg.com/@types/webpack-sources/-/webpack-sources-1.4.2.tgz#5d3d4dea04008a779a90135ff96fb5c0c9e6292c"
2012+
integrity sha512-77T++JyKow4BQB/m9O96n9d/UUHWLQHlcqXb9Vsf4F1+wKNrrlWNFPDLKNT92RJnCSL6CieTc+NDXtCVZswdTw==
2013+
dependencies:
2014+
"@types/node" "*"
2015+
"@types/source-list-map" "*"
2016+
source-map "^0.7.3"
2017+
20092018
"@types/webpack@*", "@types/webpack@^4.32.1":
20102019
version "4.41.12"
20112020
resolved "https://registry.yarnpkg.com/@types/webpack/-/webpack-4.41.12.tgz#0386ee2a2814368e2f2397abb036c0bf173ff6c3"

0 commit comments

Comments
 (0)