isomorphic-style-loader icon indicating copy to clipboard operation
isomorphic-style-loader copied to clipboard

Output hot module logics on demand

Open xboy2012 opened this issue 5 years ago • 0 comments

According to the webpack docs https://webpack.js.org/api/loaders/#thishot

we can know if HMR is enabled during COMPILE PHASE.

The current code increase unnecessary codes in production. ( Hot Module Reload is never enabled in production)

Hope this little change may help generating smaller output codes.

I also found that refs variable is never used, so it could be removed safely.

xboy2012 avatar May 13 '20 06:05 xboy2012