Skip to content

Latest commit

 

History

History
25 lines (12 loc) · 715 Bytes

README.md

File metadata and controls

25 lines (12 loc) · 715 Bytes

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