dcloudio / dcloudio/uni-app

分包无法引入分包目录下的自定义组件

Open
#2,730 5 comments 0 reactions 2 assignees Claimed by @chouchouji View on GitHub
doubleCheck mp-weixin
Dominant language
JavaScript
Stars
41.6k
Forks
3.7k
Avg merge
7h 6m
Merged PRs (30d)
6

Description

**问题描述**
分包可以引入根目录下wxcomponents的自定义组件,但会打包到主包,造成体积过大,
期望可以在分包目录下使用wxcomponents,目前在分包里创建wxcomponents文件夹是无效的,也无法正常引入。

**复现步骤**
打包后分包目录下也没有wxcomponents文件夹,有什么办法可以直接在分包目录里使用嘛
![image](https://user-images.githubusercontent.com/4082488/123514713-e643be00-d6c6-11eb-98cd-86ec9e3a1aa0.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.