terser-webpack-plugin
Advanced tools
Comparing version 5.2.2 to 5.2.3
@@ -79,5 +79,5 @@ "use strict"; | ||
* @typedef {Object} ExtractCommentsObject | ||
* @property {ExtractCommentsCondition} condition | ||
* @property {ExtractCommentsFilename} filename | ||
* @property {ExtractCommentsBanner} banner | ||
* @property {ExtractCommentsCondition} [condition] | ||
* @property {ExtractCommentsFilename} [filename] | ||
* @property {ExtractCommentsBanner} [banner] | ||
*/ | ||
@@ -168,3 +168,2 @@ | ||
*/ | ||
// TODO please add manually `T = TerserOptions`, because typescript is not supported default value for templates yet | ||
@@ -171,0 +170,0 @@ /** |
{ | ||
"name": "terser-webpack-plugin", | ||
"version": "5.2.2", | ||
"version": "5.2.3", | ||
"description": "Terser plugin for webpack", | ||
@@ -20,6 +20,5 @@ "license": "MIT", | ||
"scripts": { | ||
"start": "npm run build -- -w", | ||
"clean": "del-cli dist", | ||
"clean": "del-cli dist types", | ||
"prebuild": "npm run clean", | ||
"build:types": "tsc --declaration --emitDeclarationOnly --outDir types && prettier \"types/**/*.ts\" --write && prettier types --write", | ||
"build:types": "tsc --declaration --emitDeclarationOnly --outDir types && prettier \"types/**/*.ts\" --write && node scripts/fix-types.js && prettier types --write", | ||
"build:code": "cross-env NODE_ENV=production babel src -d dist --copy-files", | ||
@@ -26,0 +25,0 @@ "build": "npm-run-all -p \"build:**\"", |
@@ -36,5 +36,5 @@ export default TerserPlugin; | ||
export type ExtractCommentsObject = { | ||
condition: ExtractCommentsCondition; | ||
filename: ExtractCommentsFilename; | ||
banner: ExtractCommentsBanner; | ||
condition?: ExtractCommentsCondition | undefined; | ||
filename?: ExtractCommentsFilename | undefined; | ||
banner?: ExtractCommentsBanner | undefined; | ||
}; | ||
@@ -133,5 +133,5 @@ export type ExtractCommentsOptions = | ||
* @typedef {Object} ExtractCommentsObject | ||
* @property {ExtractCommentsCondition} condition | ||
* @property {ExtractCommentsFilename} filename | ||
* @property {ExtractCommentsBanner} banner | ||
* @property {ExtractCommentsCondition} [condition] | ||
* @property {ExtractCommentsFilename} [filename] | ||
* @property {ExtractCommentsBanner} [banner] | ||
*/ | ||
@@ -212,3 +212,3 @@ /** | ||
*/ | ||
declare class TerserPlugin<T> { | ||
declare class TerserPlugin<T = TerserOptions> { | ||
/** | ||
@@ -215,0 +215,0 @@ * @private |
87183
1709