mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-16 02:24:10 +08:00
build: update @types/webpack-sources to version ^1.4.2
This commit is contained in:
parent
dd58aa6210
commit
cee5c31fa1
@ -121,7 +121,7 @@
|
|||||||
"@types/uuid": "^8.0.0",
|
"@types/uuid": "^8.0.0",
|
||||||
"@types/webpack": "^4.32.1",
|
"@types/webpack": "^4.32.1",
|
||||||
"@types/webpack-dev-server": "^3.1.7",
|
"@types/webpack-dev-server": "^3.1.7",
|
||||||
"@types/webpack-sources": "^0.1.5",
|
"@types/webpack-sources": "^1.4.2",
|
||||||
"@yarnpkg/lockfile": "1.1.0",
|
"@yarnpkg/lockfile": "1.1.0",
|
||||||
"ajv": "6.12.0",
|
"ajv": "6.12.0",
|
||||||
"ansi-colors": "4.1.1",
|
"ansi-colors": "4.1.1",
|
||||||
|
@ -12,12 +12,12 @@ import {
|
|||||||
Stats,
|
Stats,
|
||||||
compilation,
|
compilation,
|
||||||
} from 'webpack';
|
} from 'webpack';
|
||||||
import { Source } from 'webpack-sources';
|
import { OriginalSource } from 'webpack-sources';
|
||||||
|
|
||||||
const NormalModule = require('webpack/lib/NormalModule');
|
const NormalModule = require('webpack/lib/NormalModule');
|
||||||
|
|
||||||
interface NormalModule extends Module {
|
interface NormalModule extends Module {
|
||||||
_source?: Source | null;
|
_source?: OriginalSource | null;
|
||||||
resource?: string;
|
resource?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
import * as cssNano from 'cssnano';
|
import * as cssNano from 'cssnano';
|
||||||
import { ProcessOptions, Result } from 'postcss';
|
import { ProcessOptions, Result } from 'postcss';
|
||||||
import { Compiler, compilation } from 'webpack';
|
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';
|
import { addWarning } from '../../utils/webpack-diagnostics';
|
||||||
|
|
||||||
export interface OptimizeCssWebpackPluginOptions {
|
export interface OptimizeCssWebpackPluginOptions {
|
||||||
@ -58,7 +58,7 @@ export class OptimizeCssWebpackPlugin {
|
|||||||
const actions = files
|
const actions = files
|
||||||
.filter(file => this._options.test(file))
|
.filter(file => this._options.test(file))
|
||||||
.map(async file => {
|
.map(async file => {
|
||||||
const asset = compilation.assets[file] as Source;
|
const asset = compilation.assets[file] as OriginalSource;
|
||||||
if (!asset) {
|
if (!asset) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -2006,6 +2006,15 @@
|
|||||||
"@types/source-list-map" "*"
|
"@types/source-list-map" "*"
|
||||||
source-map "^0.6.1"
|
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":
|
"@types/webpack@*", "@types/webpack@^4.32.1":
|
||||||
version "4.41.12"
|
version "4.41.12"
|
||||||
resolved "https://registry.yarnpkg.com/@types/webpack/-/webpack-4.41.12.tgz#0386ee2a2814368e2f2397abb036c0bf173ff6c3"
|
resolved "https://registry.yarnpkg.com/@types/webpack/-/webpack-4.41.12.tgz#0386ee2a2814368e2f2397abb036c0bf173ff6c3"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user