From dbb9560639b1a0fb9ac071df30beae18cf82c09b Mon Sep 17 00:00:00 2001
From: AkiraFukushima
Date: Sun, 14 Aug 2022 01:37:20 +0900
Subject: [PATCH] Specify transpileOnly to speed up build time for main
---
.electron-vue/webpack.main.config.js | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/.electron-vue/webpack.main.config.js b/.electron-vue/webpack.main.config.js
index 39b458ad..3ca31471 100644
--- a/.electron-vue/webpack.main.config.js
+++ b/.electron-vue/webpack.main.config.js
@@ -19,7 +19,14 @@ let mainConfig = {
{
test: /\.ts$/,
exclude: /node_modules/,
- loader: 'ts-loader'
+ use: [
+ {
+ loader: 'ts-loader',
+ options: {
+ transpileOnly: true
+ }
+ }
+ ]
},
{
test: /\.js$/,