Skip to content

Commit 8449cac

Browse files
committed
remove happypack
1 parent 0c80bf9 commit 8449cac

3 files changed

Lines changed: 25 additions & 75 deletions

File tree

package-lock.json

Lines changed: 17 additions & 58 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@
113113
"@electron/notarize": "^2.3.2",
114114
"electron-packager": "^17.1.2",
115115
"file-loader": "^6.2.0",
116-
"happypack": "^5.0.1",
117116
"html-webpack-plugin": "^5.5.3",
118117
"husky": "^7.0.4",
119118
"lint-staged": "^10.5.3",

webpack.config.js

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
const webpack = require('webpack')
22
const TsconfigPathsPlugin = require("tsconfig-paths-webpack-plugin");
3-
const HappyPack = require("happypack");
43
const WebpackBuildNotifierPlugin = require("webpack-build-notifier");
54
const HtmlWebpackPlugin = require("html-webpack-plugin");
65
const { CleanWebpackPlugin } = require("clean-webpack-plugin");
@@ -106,24 +105,17 @@ function getCommonConfig(type, env) {
106105
rules: [
107106
{
108107
test: /\.tsx?$/,
109-
exclude: "/node_modules/",
110-
use: [{ loader: "happypack/loader?id=ts" }],
108+
exclude: /node_modules/,
109+
use: [
110+
{
111+
loader: "ts-loader",
112+
options: { transpileOnly: true },
113+
},
114+
],
111115
},
112116
],
113117
},
114-
plugins: [
115-
new HappyPack({
116-
id: "ts",
117-
threads: 4,
118-
loaders: [
119-
{
120-
path: "ts-loader",
121-
query: { happyPackMode: true },
122-
},
123-
],
124-
verbose: false,
125-
}),
126-
],
118+
plugins: [],
127119
optimization: {
128120
minimize: false,
129121
minimizer: [],

0 commit comments

Comments
 (0)