Exclude moment js from bundle

Hey

So in my app I’m using DayJs instead of Moment, but when I bundle my lib I can see in Vue UI that moment is included. How can I prevent that?

Check if any of your source code are importing moment.

If not, perhaps you have install any libraries that is using momentjs as its dependencies.

If it’s bundled it means that your code or 2rd party code imports it. So simply excluding it will break your app.

Find out what uses moment and replace that with something that doesn’t.