From 0677225fa4898dab8fb13d068ea3ae17e99eb833 Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Wed, 28 Aug 2019 17:23:35 +0800 Subject: [PATCH] fix(mp-alipay): global usingComponents #592 --- .../lib/platforms/mp-alipay.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/webpack-uni-pages-loader/lib/platforms/mp-alipay.js b/packages/webpack-uni-pages-loader/lib/platforms/mp-alipay.js index 2237fbad9a..a2d4c2836b 100644 --- a/packages/webpack-uni-pages-loader/lib/platforms/mp-alipay.js +++ b/packages/webpack-uni-pages-loader/lib/platforms/mp-alipay.js @@ -1,6 +1,10 @@ const { parsePages -} = require('@dcloudio/uni-cli-shared') +} = require('@dcloudio/uni-cli-shared') + +const { + updateAppJsonUsingComponents +} = require('@dcloudio/uni-cli-shared/lib/cache') const { hasOwn, @@ -59,6 +63,10 @@ module.exports = function (pagesJson, manifestJson) { }) copyToJson(app, pagesJson, pagesJson2AppJson) + + if (app.usingComponents) { + updateAppJsonUsingComponents(app.usingComponents) + } return [{ name: 'app', -- GitLab