这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@gityoog
Copy link

@gityoog gityoog commented Jul 12, 2021

eval('this') in Webpack5 is window
use __webpack_exports__ to replace it
it can work in Webpack4

@vfasky
Copy link

vfasky commented Aug 17, 2023

Thank you, these commits saved my day.

@skyrpex
Copy link
Owner

skyrpex commented Aug 6, 2024

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.

@skyrpex
Copy link
Owner

skyrpex commented Aug 6, 2024

Github wouldn't let me merge your PR, so I just changed it myself. The change is reflected in 1.4.3.

@skyrpex skyrpex closed this Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants