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

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -