Skip to content

Commit 0478164

Browse files
committed
fix: 'ThreadCreate' undefined error in production mode
1 parent d24828e commit 0478164

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const path = require("path");
33
module.exports = {
44
entry: "./src/index.ts",
55
target: "node",
6-
mode: "production",
6+
mode: "development", // TODO: Resolve issue in production mode where `client.actions.ThreadCreate.handle(packet.d);` throws an error due to 'ThreadCreate' being undefined.
77
module: {
88
rules: [
99
{
@@ -24,7 +24,7 @@ module.exports = {
2424
path: path.resolve(__dirname, "dist"),
2525
},
2626
optimization: {
27-
splitChunks: false,
27+
minimize: true,
2828
},
2929
node: {
3030
__dirname: false,

0 commit comments

Comments
 (0)