build: update @types/webpack-sources to version ^1.4.2

This commit is contained in:
Alan Agius 2020-07-31 11:19:23 +02:00 committed by Charles
parent dd58aa6210
commit cee5c31fa1
4 changed files with 14 additions and 5 deletions

View File

@ -121,7 +121,7 @@
"@types/uuid": "^8.0.0",
"@types/webpack": "^4.32.1",
"@types/webpack-dev-server": "^3.1.7",
"@types/webpack-sources": "^0.1.5",
"@types/webpack-sources": "^1.4.2",
"@yarnpkg/lockfile": "1.1.0",
"ajv": "6.12.0",
"ansi-colors": "4.1.1",

View File

@ -12,12 +12,12 @@ import {
Stats,
compilation,
} from 'webpack';
import { Source } from 'webpack-sources';
import { OriginalSource } from 'webpack-sources';
const NormalModule = require('webpack/lib/NormalModule');
interface NormalModule extends Module {
_source?: Source | null;
_source?: OriginalSource | null;
resource?: string;
}

View File

@ -8,7 +8,7 @@
import * as cssNano from 'cssnano';
import { ProcessOptions, Result } from 'postcss';
import { Compiler, compilation } from 'webpack';
import { RawSource, Source, SourceMapSource } from 'webpack-sources';
import { OriginalSource, RawSource, SourceMapSource } from 'webpack-sources';
import { addWarning } from '../../utils/webpack-diagnostics';
export interface OptimizeCssWebpackPluginOptions {
@ -58,7 +58,7 @@ export class OptimizeCssWebpackPlugin {
const actions = files
.filter(file => this._options.test(file))
.map(async file => {
const asset = compilation.assets[file] as Source;
const asset = compilation.assets[file] as OriginalSource;
if (!asset) {
return;
}

View File

@ -2006,6 +2006,15 @@
"@types/source-list-map" "*"
source-map "^0.6.1"
"@types/webpack-sources@^1.4.2":
version "1.4.2"
resolved "https://registry.yarnpkg.com/@types/webpack-sources/-/webpack-sources-1.4.2.tgz#5d3d4dea04008a779a90135ff96fb5c0c9e6292c"
integrity sha512-77T++JyKow4BQB/m9O96n9d/UUHWLQHlcqXb9Vsf4F1+wKNrrlWNFPDLKNT92RJnCSL6CieTc+NDXtCVZswdTw==
dependencies:
"@types/node" "*"
"@types/source-list-map" "*"
source-map "^0.7.3"
"@types/webpack@*", "@types/webpack@^4.32.1":
version "4.41.12"
resolved "https://registry.yarnpkg.com/@types/webpack/-/webpack-4.41.12.tgz#0386ee2a2814368e2f2397abb036c0bf173ff6c3"