-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Taro 组件编译问题 #4445
Comments
欢迎提交 Issue~ 如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏 如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。 Good luck and happy coding~ |
CC @luckyadam |
luckyadam
added a commit
that referenced
this issue
Sep 19, 2019
用以下方式打包失败
|
当前行为缺少对 期望行为正常引入组件 |
luckyadam
added a commit
that referenced
this issue
Nov 26, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题描述
目前有项目使用了 Taro + lerna 的形式开发多组件方案,但是 Taro 的 UI 打包机制过于约束,无法让每个 package 各自打包组件,希望能支持通过传递参数来让指定文件编译成 Taro 包 , 让打包更加自由,(或则能通过babel、rollup、webpack 插件实现这种功能)
不可通过第三方组件实现继承的效果,但是把第三方组件代码放到当前项目就好了
如果在 scss 文件下引用了第三方模块,会导致 UI 组件编译失败
编译 UI 时,组件在 h5 下会自动添加不必要的代码

编译UI之后, weapp 目录下的 alias 路径没有经过处理 (h5会转变成相对路径处理),导致项目引用组件时报错
期望行为
编译指定组件为 Taro 组件
# 编译指定组件为 Taro 组件 taro build --ui --config ../config/index.js
可以继承第三方组件
正常编译通过
系统信息

The text was updated successfully, but these errors were encountered: