Skip to content

ghoshArnab/moment-rollup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MomentJS with rollup

Natural esm code splitting using dynamic import.

Change the language in browser to french/es/hi/ar/fr-ca to check this.

The main moment file needs to be added in src (like in current libs.js) and rest splitted files(locales) will be loaded dynamically.

The output structure :

with all locales bundled together : import(moment/min/locales);

alt text

With individual imports : import(moment/locale/fr);

each locale file will be dynamically imported.

alt text

About

MomentJS with rollup

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published