File tree 4 files changed +14
-5
lines changed
packages/angular_devkit/build_angular
src/angular-cli-files/plugins
4 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 121
121
"@types/uuid" : " ^8.0.0" ,
122
122
"@types/webpack" : " ^4.32.1" ,
123
123
"@types/webpack-dev-server" : " ^3.1.7" ,
124
- "@types/webpack-sources" : " ^0.1.5 " ,
124
+ "@types/webpack-sources" : " ^1.4.2 " ,
125
125
"@yarnpkg/lockfile" : " 1.1.0" ,
126
126
"ajv" : " 6.12.0" ,
127
127
"ansi-colors" : " 4.1.1" ,
Original file line number Diff line number Diff line change @@ -12,12 +12,12 @@ import {
12
12
Stats ,
13
13
compilation ,
14
14
} from 'webpack' ;
15
- import { Source } from 'webpack-sources' ;
15
+ import { OriginalSource } from 'webpack-sources' ;
16
16
17
17
const NormalModule = require ( 'webpack/lib/NormalModule' ) ;
18
18
19
19
interface NormalModule extends Module {
20
- _source ?: Source | null ;
20
+ _source ?: OriginalSource | null ;
21
21
resource ?: string ;
22
22
}
23
23
Original file line number Diff line number Diff line change 8
8
import * as cssNano from 'cssnano' ;
9
9
import { ProcessOptions , Result } from 'postcss' ;
10
10
import { Compiler , compilation } from 'webpack' ;
11
- import { RawSource , Source , SourceMapSource } from 'webpack-sources' ;
11
+ import { OriginalSource , RawSource , SourceMapSource } from 'webpack-sources' ;
12
12
import { addWarning } from '../../utils/webpack-diagnostics' ;
13
13
14
14
export interface OptimizeCssWebpackPluginOptions {
@@ -58,7 +58,7 @@ export class OptimizeCssWebpackPlugin {
58
58
const actions = files
59
59
. filter ( file => this . _options . test ( file ) )
60
60
. map ( async file => {
61
- const asset = compilation . assets [ file ] as Source ;
61
+ const asset = compilation . assets [ file ] as OriginalSource ;
62
62
if ( ! asset ) {
63
63
return ;
64
64
}
Original file line number Diff line number Diff line change 2006
2006
"@types/source-list-map" "*"
2007
2007
source-map "^0.6.1"
2008
2008
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
+
2009
2018
"@types/webpack@*", "@types/webpack@^4.32.1":
2010
2019
version "4.41.12"
2011
2020
resolved "https://registry.yarnpkg.com/@types/webpack/-/webpack-4.41.12.tgz#0386ee2a2814368e2f2397abb036c0bf173ff6c3"
You can’t perform that action at this time.
0 commit comments