1

创建一个将所有导入文件放入其中的文件是否正确?

// lodash-helper.js
export const isEqual = import('lodash/isEqual');
export const includes = import ('lodash/includes');
export const filter = import ('lodash/filter');

// some-file.component.ts
import { isEqual } from 'src/core/helpers/lodash-helper'; // In this file I need only one import
4

0 回答 0