@@ -104,7 +104,7 @@
|
||||
"style-loader": "^1.2.1",
|
||||
"sucrase": "^3.18.2",
|
||||
"tar": "^6.1.2",
|
||||
"terser-webpack-plugin": "^1.4.3",
|
||||
"terser-webpack-plugin": "^5.1.3",
|
||||
"ts-loader": "^8.0.17",
|
||||
"typescript": "^4.0.3",
|
||||
"url-loader": "^4.1.0",
|
||||
@@ -137,6 +137,7 @@
|
||||
"@types/rollup-plugin-peer-deps-external": "^2.2.0",
|
||||
"@types/rollup-plugin-postcss": "^2.0.0",
|
||||
"@types/tar": "^4.0.3",
|
||||
"@types/terser-webpack-plugin": "^5.0.4",
|
||||
"@types/webpack": "^5.28.0",
|
||||
"@types/webpack-dev-server": "^3.11.5",
|
||||
"@types/yarnpkg__lockfile": "^1.1.4",
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { WebpackOptionsNormalized } from 'webpack';
|
||||
import { WebpackOptionsNormalized, WebpackPluginInstance } from 'webpack';
|
||||
import TerserPlugin from 'terser-webpack-plugin';
|
||||
import { BundlingOptions } from './types';
|
||||
import { isParallelDefault } from '../parallel';
|
||||
@@ -30,9 +30,9 @@ export const optimization = (
|
||||
...(!isParallelDefault(options.parallel)
|
||||
? {
|
||||
minimizer: [
|
||||
new TerserPlugin({
|
||||
(new TerserPlugin({
|
||||
parallel: options.parallel,
|
||||
}),
|
||||
}) as unknown) as WebpackPluginInstance,
|
||||
],
|
||||
}
|
||||
: {}),
|
||||
|
||||
Vendored
-3
@@ -29,9 +29,6 @@ declare module '@svgr/rollup' {
|
||||
}
|
||||
|
||||
declare module '@rollup/plugin-yaml';
|
||||
|
||||
declare module 'terser-webpack-plugin';
|
||||
|
||||
declare module 'react-dev-utils/formatWebpackMessages' {
|
||||
export default function (
|
||||
stats: any,
|
||||
|
||||
Reference in New Issue
Block a user