fix: 🐛 若全量引入 lodash 则在小程序下会跑不通,所以改成引入 lodash/clone

This commit is contained in:
牧毅 2020-08-13 00:35:29 +08:00
parent 27a9800705
commit a1a3b68287
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
import moment from 'moment';
import { clone } from 'lodash';
import clone from 'lodash/clone';
const formatPrice = function formatPrice(price, unit) {
return Number(price).toFixed(2) + unit;

View File

@ -243,7 +243,8 @@
package: 'lodash',
version: '*',
exportName: 'clone',
destructuring: true,
destructuring: false,
main: '/clone',
},
},
],