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

php - Embed BBCode within itself not working -

three.js - how to load gltf in three JS -

sql server - T-SQL: Access DB objects in same schema without qualifying? -