Sorry if this is a dumb question, but: what plugin? how? I wasn't able to find anything about this for searches like 'DayJS tree shaking plugin'. The only thing Google was leading me to was Webpack's tree shaking. Is that what you mean?
It means that the architecture itself build over plugins day.js.org/docs/en/plugin/plugin, so basically, you can not import a specific plugin until you need it.
So if chunk A only does simple formatting – dayjs weights 2kb, but another chunk can add some functionality like timezones day.js.org/docs/en/plugin/relative... and this code will be loaded only when it's really needed.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Sorry if this is a dumb question, but: what plugin? how? I wasn't able to find anything about this for searches like 'DayJS tree shaking plugin'. The only thing Google was leading me to was Webpack's tree shaking. Is that what you mean?
It means that the architecture itself build over plugins day.js.org/docs/en/plugin/plugin, so basically, you can not import a specific plugin until you need it.
So if chunk A only does simple formatting – dayjs weights 2kb, but another chunk can add some functionality like timezones day.js.org/docs/en/plugin/relative... and this code will be loaded only when it's really needed.