chore: maybe fixing things!

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2021-08-06 14:35:59 +02:00
parent 7a072dc8ca
commit 095db2591c
5 changed files with 48 additions and 11 deletions
+2 -1
View File
@@ -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",
+3 -3
View File
@@ -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,
],
}
: {}),
-3
View File
@@ -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,