javascript - import "moment/moment" is not ignoring "moment/locale" -
i using moment.js
library in angular project. , not need moment/locale
entirely moment.js
. imported following :
import * moment 'moment/moment';
but when analyse vendor***.bundle.js.map created during build using source-map-explorer
i still see moment/locale
bundled in vendor file. , around ~160kb. that's huge.
any suggestions improve import
statement?
Comments
Post a Comment