-
Notifications
You must be signed in to change notification settings - Fork 5
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
vite6.0.0-beta.8
打包预览报错
#37
Comments
错误显示无法获取 path-to-regexp 的 match 方法,path-to-regexp 是通过 Vite 打包到浏览器的 vite-plugin-fake-server/packages/vite-plugin-fake-server/src/utils/buildPackage.ts Lines 6 to 47 in c981a3a
但是在 Vite6 中的输出不一致了 😅 |
感谢你的回答,貌似做个判断,能兼容下 |
不知道这算不算是他们的一个 bug😂 |
管他的,先提一个 bug 😂 |
Rollup 把 strictRequires 默认值从 auto 改为 true 了,我在打包的时候强制指定打包参数 strictRequires 还为 "auto"。
同时在代码中增加判断逻辑——没有别名导出就使用默认导出。 |
v2.1.3 已经发布 |
作者,你好,目前在升级
vite6
时遇到vite-plugin-fake-server
打包后报错,如下图vite6.0.0-beta.8
已接近正式版 https://github.com/vitejs/vite/milestone/17可能是
vite6
正式引入了 环境概念 带来了一些Break Change
The text was updated successfully, but these errors were encountered: