-
-
Notifications
You must be signed in to change notification settings - Fork 6.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
require is not defined
when using Lazy Loading Routes by vue-router
#4746
Comments
may be affected by this issue #3469 |
|
@sodatea Actually, my purpose is preventing css rgba transform to hex color style. I make some try if it is not a bug, how to achieve my purpose. |
Could you please provide a reproduction? |
https://github.com/gxsandzxl/vite-bug-demo |
@sodatea |
That's a quirk in Android WeChat WebView (or to say, Tencent X5, because Android QQ Browser has this issue too). I can't find any other browser that supports native dynamic imports but not RGBA hex color… There's no easy way to work around this issue at the moment. So please:
|
all right, thanks a lot |
@sodatea Is it possible to provide an property for minify css: 'esbuild' or 'clean-css' ? |
@Ttou Exactly that |
There is the changelog about why rgba to hex esbuild hex docs. Accroding to this docs, I try to set target at 'chrome51', it will not change rgba to hex |
Describe the bug
use Lazy Loading Routes by
vue-router
like the below code,it is error console in browser
Reproduction
https://github.com/gxsandzxl/vite-bug-demo
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: