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

minify - Minimizing css files -

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -