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

请问有能让astro或mdx支持适配mpx的集成包吗 #1466

Open
Zeij opened this issue May 9, 2024 · 2 comments
Open

请问有能让astro或mdx支持适配mpx的集成包吗 #1466

Zeij opened this issue May 9, 2024 · 2 comments

Comments

@Zeij
Copy link
Contributor

Zeij commented May 9, 2024

或者有别的思路吗,先用webpack打包mpx成vue,但是astro 基于 Vite 构建,webpack的plugin可能不被支持

@hiyuki
Copy link
Collaborator

hiyuki commented May 10, 2024

没有研究过,不过理论上应该可以,目前可以支持将.mpx组件独立构建为.js格式的vue组件(为了避免底层冗余可能需要配置一系列externals),如果vite/astro支持二次构建该文件就可以,以及mpx目前的构建目标是vue2.7而不是vue3

@Zeij
Copy link
Contributor Author

Zeij commented May 14, 2024

没有研究过,不过理论上应该可以,目前可以支持将.mpx组件独立构建为.js格式的vue组件(为了避免底层冗余可能需要配置一系列externals),如果vite/astro支持二次构建该文件就可以,以及mpx目前的构建目标是vue2.7而不是vue3

大佬请问有webpack打包构建mpx的最小子集配置吗,没有基于cli创建项目,打包出来的js产物放到vue中使用遇到了各种问题😭

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