From 429cd06ab5bf2be3fb94cd4dd9c9a16969b7f316 Mon Sep 17 00:00:00 2001 From: Norbert de Langen Date: Thu, 3 Dec 2020 19:56:00 +0100 Subject: [PATCH] fix terserplugin options --- lib/core/src/server/manager/manager-webpack.config.ts | 6 ++---- lib/core/src/server/preview/iframe-webpack.config.ts | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/lib/core/src/server/manager/manager-webpack.config.ts b/lib/core/src/server/manager/manager-webpack.config.ts index 83159c4c9d7..d405d9dfbbb 100644 --- a/lib/core/src/server/manager/manager-webpack.config.ts +++ b/lib/core/src/server/manager/manager-webpack.config.ts @@ -161,15 +161,13 @@ export default async ({ minimizer: isProd ? [ new TerserWebpackPlugin({ - cache: true, parallel: true, - sourceMap: true, terserOptions: { mangle: false, + sourceMap: true, keep_fnames: true, }, - // FIXME: `cache` isn't a known attribute - } as any), + }), ] : [], }, diff --git a/lib/core/src/server/preview/iframe-webpack.config.ts b/lib/core/src/server/preview/iframe-webpack.config.ts index ffc1e257dfc..ac260ea6995 100644 --- a/lib/core/src/server/preview/iframe-webpack.config.ts +++ b/lib/core/src/server/preview/iframe-webpack.config.ts @@ -196,15 +196,13 @@ export default async ({ minimizer: isProd ? [ new TerserWebpackPlugin({ - cache: true, parallel: true, - sourceMap: true, terserOptions: { + sourceMap: true, mangle: false, keep_fnames: true, }, - // FIXME: `cache` isn't a known attribute - } as any), + }), ] : [], },