1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Set minimize: false and transpileOnly: true to speed up build, as the output will not be used in production/runtime

Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com>
This commit is contained in:
Hung-Han (Henry) Chen 2020-12-03 16:43:39 +08:00
parent de17ecb13f
commit d569c104ba
No known key found for this signature in database
GPG Key ID: A28B7834EFA73792

View File

@ -22,12 +22,18 @@ export default function (): webpack.Configuration {
// e.g. require('@k8slens/extensions')
libraryTarget: "commonjs"
},
optimization: {
// we don't really need minimize
// default is true
minimize: false
},
module: {
rules: [
{
test: /\.tsx?$/,
loader: "ts-loader",
options: {
transpileOnly: true,
// !! ts-loader will use tsconfig.json at folder root
// !! changes in tsconfig.json may have side effects
// !! on '@k8slens/extensions' module