vue-jsx-hot-loader
vue-jsx-hot-loader copied to clipboard
Support webpack5
eval('this') in Webpack5 is window
use __webpack_exports__ to replace it
it can work in Webpack4
Thank you, these commits saved my day.
Does it work for ES modules as well? I remember a contribution that added the eval('this'): https://github.com/skyrpex/vue-jsx-hot-loader/pull/21/files.
Github wouldn't let me merge your PR, so I just changed it myself. The change is reflected in 1.4.3.