-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
开发环境下存在兼容性问题 #528
Comments
sorrycc
added a commit
that referenced
this issue
May 23, 2018
fix: compatibility issue in dev server(#528)
Thanks for PR, closed via #528 . |
sorrycc
pushed a commit
that referenced
this issue
Jun 23, 2022
* refactor: 🔥 remove unnessary isPromise * refactor: 🔥 remove isPromise decision * chore: ⏪ revert client side change * test: ✅ BDD style rerange test * test: ✅ revert to tdd style test case Co-authored-by: pshu <[email protected]>
xierenyuan
pushed a commit
to xierenyuan/umi
that referenced
this issue
Jun 23, 2022
* refactor: 🔥 remove unnessary isPromise * refactor: 🔥 remove isPromise decision * chore: ⏪ revert client side change * test: ✅ BDD style rerange test * test: ✅ revert to tdd style test case Co-authored-by: pshu <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题
在开发环境下,浏览器加载的
umi.js
文件中存在这样一段代码其中的let和Template literals语法会让一些兼容性不太好的浏览器报错,导致页面白屏
原因
出现问题的文件在NotFound.js#L4中被引用,从build.js#L46来看,
NotFound.js
使用browserBabelConfig
进行编译,而guessJSFileFromPath.js
使用nodeBabelConfig
进行编译,也就是说guessJSFileFromPath.js
用错了编译配置解决方案
guessJSFileFromPath.js
使用browserBabelConfig
编译其他
在问题并不存在于生产环境(即build之后)
The text was updated successfully, but these errors were encountered: