Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webpack5.72下,eruda代码无法注入 #32

Open
liumulin614 opened this issue May 13, 2022 · 1 comment
Open

webpack5.72下,eruda代码无法注入 #32

liumulin614 opened this issue May 13, 2022 · 1 comment

Comments

@liumulin614
Copy link

应该是这行代码:compilation.assets[asset].source = () => source不生效了

@lyswhut
Copy link

lyswhut commented Oct 17, 2022

试了下改成以下方法可以恢复正常:

      if (assets[asset]._value != null) assets[asset]._value = source
      assets[asset]._valueAsString = source

      // compilation.assets[asset].source = () => source
      // compilation.assets[asset].size = () => source.length

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

No branches or pull requests

2 participants