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

[BUG] vite下使用报错 #21

Open
wangxh89 opened this issue Sep 22, 2023 · 2 comments
Open

[BUG] vite下使用报错 #21

wangxh89 opened this issue Sep 22, 2023 · 2 comments

Comments

@wangxh89
Copy link

描述你的问题(Describe the bug)

image

复现路径(To Reproduce)

预期表现(Expected behavior)

环境信息(Environment)

  • OS: [e.g. macOS 11.2 Apple M1/Windows10/Windows11]
  • Browser: [e.g. chrome, safari, electron]
  • Codeblitz Version: [e.g. 1.0.0]
@AhkunTa
Copy link
Member

AhkunTa commented Sep 22, 2023

可以增加这个配置项
resolve: { alias: [{ find: /^~/, replacement: "" }], },

可以解决引用问题 但主要问题其实是 vitejs/vite#7330

esbuild 内不支持 "emitDecoratorMetadata": true, "experimentalDecorators": true,

opensumi 使用 @opensumi/di 所以在vite内构建可能需要自己写 vite插件来实现

@HananoshikaYomaru
Copy link

is there any plan to switch to vite rather than webpack for the core modules or making it work with both build tool?

having a frontend library tied to open the build tool sound red flag to me.

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

3 participants