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

fix(vue3-vite): wxs 打包失败 #3069

Closed
sufuwang opened this issue Dec 14, 2021 · 5 comments
Closed

fix(vue3-vite): wxs 打包失败 #3069

sufuwang opened this issue Dec 14, 2021 · 5 comments

Comments

@sufuwang
Copy link

vue 文件中包含如下 script ,会打包失败,webpack 打包正常

<script module="handler" lang="wxs" src="./handler.wxs"></script>

测试工程:https://github.com/sufuWang/uniapp_vite
我尝试解决这个 bug ,表面上已经解决了,但不知道是 vite 的问题,还是 uni-app 的问题,所以向大佬确认一下
此 mr 可以解决此问题,但感觉这个并不是问题本身:vitejs/vite#6106

@fxy060608
Copy link
Collaborator

fxy060608 commented Dec 14, 2021

应该就是这个问题,你可以用标准的 vite + custom-blocks(src) + build 重现该问题

@sufuwang
Copy link
Author

应该就是这个问题,你可以用标准的 vite + custom-blocks(src) + build 重现该问题

vite 中没能复现此问题

@fxy060608
Copy link
Collaborator

fxy060608 commented Dec 14, 2021

应该就是这个问题,你可以用标准的 vite + custom-blocks(src) + build 重现该问题

vite 中没能复现此问题

my-vue-app.zip

npm run build

@sufuwang
Copy link
Author

学到了

@fxy060608
Copy link
Collaborator

已修复,cli更新至:3.0.0-alpha-3030120211215001

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