kirklin / celeris-web

Celeris Web is a highly performant and customizable front-end development template built with Vue 3, Vite, and TypeScript. It features the latest syntax, components and APIs auto importing, state management, Chinese font presets, internationalization, and integration with OpenAI's ChatGPT API.
https://celeris-web.vercel.app/
MIT License
384 stars 60 forks source link

Packaging Issue in Monorepo for Independent npm Package Usage | 修复 Monorepo 下每个包的打包问题以便独立发布 #34

Open kirklin opened 3 months ago

kirklin commented 3 months ago

Describe the bug

在我们的 Monorepo 结构中,我们注意到每个子包在打包后不能正常使用。

Reproduction

-

System Info

-

Validations

l54808821 commented 1 month ago

这个功能确实非常需要,关注中

l54808821 commented 1 month ago

https://vite.itnavs.com/doc/guide/source.html

这个文档中有提到,通过项目中的命令实现,可以参考一下。本人能力有限,期待作者的实现 "lib": "vite build --mode lib", // 打包lib模式 一般用于上传npm仓库