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), + }), ] : [], },