0.0.1 • Published 6 years ago
umi-plugin-lodash v0.0.1
umi-plugin-lodash
Easy to ues lodash in UmiJS.
// config in umi config file
export default {
plugins: [
['umi-plugin-lodash', {
version: '4.0.0',
external: true,
}]
]
}
Then You can use in your code:
import { uniq } from 'umi/lodash';
uniq([1, 2, 2]);
0.0.1
6 years ago