@@ -39,7 +39,6 @@ const WebpackDevelopmentConfiguration = async () => {
39
39
output : {
40
40
publicPath : '/' ,
41
41
module : true ,
42
- // library: { type: 'module' },
43
42
environment : {
44
43
dynamicImport : true ,
45
44
} ,
@@ -64,7 +63,10 @@ const WebpackDevelopmentConfiguration = async () => {
64
63
hot : true ,
65
64
liveReload : false ,
66
65
host : process . env . PROJECT_IPV4_HOST ,
67
- client : { overlay : false } , // NOTE - Use overlay of react refresh plugin
66
+ client : {
67
+ overlay : false ,
68
+ logging : 'warn' , // Want to set this to 'warn' or 'error'
69
+ } , // NOTE - Use overlay of react refresh plugin
68
70
historyApiFallback : true ,
69
71
devMiddleware : {
70
72
publicPath : '/' ,
@@ -99,6 +101,12 @@ const WebpackDevelopmentConfiguration = async () => {
99
101
decorators : false ,
100
102
dynamicImport : true ,
101
103
} ,
104
+ transform : {
105
+ react : {
106
+ development : true ,
107
+ refresh : true ,
108
+ } ,
109
+ } ,
102
110
target : 'esnext' ,
103
111
} ,
104
112
} ,
@@ -139,7 +147,7 @@ const WebpackDevelopmentConfiguration = async () => {
139
147
// excludeChunks: ["socket.io-client"],
140
148
} ) ,
141
149
RecompileLoadingScreenInitial ,
142
- new ReactRefreshPlugin ( ) ,
150
+ new ReactRefreshPlugin ( { esModule : true , overlay : true } ) ,
143
151
new WebpackCustomizeDefinePlugin ( {
144
152
'import.meta.env' : WebpackCustomizeDefinePlugin . RuntimeUpdateValue (
145
153
( ) => {
@@ -230,13 +238,6 @@ const WebpackDevelopmentConfiguration = async () => {
230
238
reuseExistingChunk : true ,
231
239
enforce : true ,
232
240
} ,
233
- components : {
234
- chunks : 'async' ,
235
- test : / [ \\ / ] c o m p o n e n t s [ \\ / ] / ,
236
- name : 'components' ,
237
- reuseExistingChunk : true ,
238
- enforce : true ,
239
- } ,
240
241
} , // cacheGroups
241
242
} ,
242
243
} ,
0 commit comments