-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
生产环境构建devtool必须加入cheap-module-eval-source-map,否则报错 #108
Comments
试了下,没发现报错,有没有示例代码? |
Hello,
Which leads to the line with code(unminified): I checked minified version of eruda(that webpack/webpack plugins minified) and found this code:
I.e. safeStorage is initialized as an empty object not a function This is not expected and error happens. How to solve problem?
Function exports that is returned, must be renamed to other name, it conflicts with the argument with the same name that is passed to a function and by the way this argument is empty object. I suspect that a code minifier during minification removes expected function and replace it with empty object. Good news: I have changed function name and no error happens on that line in code. UPDATE: The next bug with getFileName function - it has also returned function with exports name that conflicts with argument name |
@hxlhxl @kurdupovk Fixed, try v1.5.8 |
Webpack4开发环境没问题,生产环境报错。devtool改变为开发环境的cheap-module-eval-source-map错误消失。
下面是截图:
The text was updated successfully, but these errors were encountered: