Reduce bundle size of lodash
Is this correct to create a file in which I'll put all imports?
// 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
from Recent Questions - Stack Overflow https://ift.tt/2O93nY0
https://ift.tt/eA8V8J
Comments
Post a Comment