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

当使用vite plugin时,配置项似乎会被更改导致无法正常打包 #174

Closed
4 tasks done
TalexDreamSoul opened this issue May 27, 2023 · 2 comments
Closed
4 tasks done
Labels
enhancement New feature or request

Comments

@TalexDreamSoul
Copy link

Describe the bug

问题描述

似乎当使用了其他的vite插件(初步推测可能是 unocss时)可能会导致 vite 中 build.target 项被更改
即 build.cssTarget 继承原有的 target 而 target 被修改为 [ "esnext" ] 导致打包失败

建议

通过配置项指定或采用其他的特殊 renderer build target (即chrome**) 来避免

Electron-Vite Version

1.0.22

Electron Version

24.3.1

Vite Version

4.3.5

Validations

@TalexDreamSoul TalexDreamSoul added the bug Something isn't working label May 27, 2023
@alex8088
Copy link
Owner

感谢建议,有些包会强制修改target,后续兼容chrome**和>=es2021。

@alex8088 alex8088 added enhancement New feature or request and removed bug Something isn't working labels May 29, 2023
@alex8088
Copy link
Owner

alex8088 commented Jun 4, 2023

New ver 1.0.23 is out. Supports es? build target.

@alex8088 alex8088 closed this as completed Jun 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants