这个特性解决了什么问题?
减少主包体积,避免包与包之间的资源调用问题,目前taro使用该特性无法正常渲染内容,以下有一个taro例子:
https://github.com/Jonny-Zou/nutui-taro-template.git
这个 API 长什么样?
// index.config.ts文件中支持componentPlaceholder分包异步加载的参数
export default {
navigationBarTitleText: "购物车",
usingComponents: {
"oi-temp": "../../subpkg-pages/cart/index",
},
componentPlaceholder: {
"oi-temp": "common",
},
};
1条答案
按热度按时间1mrurvl11#
同问