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

webpack公共模块打包放入微信分包内 #16195

Open
y213140 opened this issue Jul 28, 2024 · 0 comments
Open

webpack公共模块打包放入微信分包内 #16195

y213140 opened this issue Jul 28, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@y213140
Copy link

y213140 commented Jul 28, 2024

这个特性解决了什么问题?

主包过大

这个 API 长什么样?

我在使用webpack打包时,使用了本地的公共模块 例如swagger-api这个自动生成接口格式数据的库,我在业务中使用时

import { api } from '@wmeimob/taro-api'

这种格式的导致我在打包后common.js里面直接写入了所有自动生成的接口数据,我希望把这些数据在一个特定的分包内不要直接打入主包

@taro-bot2 taro-bot2 bot added the enhancement New feature or request label Jul 28, 2024
This was referenced Aug 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant