antoniandre / vue-cal

A Vue 2 & 3 full calendar, no dependency, no BS. :metal:
https://antoniandre.github.io/vue-cal
MIT License
1.2k stars 230 forks source link

Build with multiple files #559

Open alangon opened 8 months ago

alangon commented 8 months ago

I am reaching out as I have extensively searched for alternatives and decided to directly contact the creator.

First and foremost, I would like to express my immense gratitude for your work on the vue-cal library. The quality and care put into the project are evident, and it has not gone unnoticed.

I was using version 2.14.1 of the library, where it was necessary to manually import the desired locale. This approach had a significant advantage: when generating the final build of my project, the imported locale file was directly integrated into the project's .js file, resulting in a compact and efficient package.

Recently, I decided to update the library to the latest version compatible with Vuejs 2. I noticed that there have been some changes in the way it is used, particularly regarding locale management. Now, instead of importing, I simply pass the desired locale as a parameter to the component (:locale="'pt-br'").

However, I am now facing a new challenge: when I generate the project build, I notice that the process creates a .js file for each locale supported by the project, in addition to the three original .js packages I already had. My question is: is there a way to integrate these locale files directly into my main .js file, just as it was in the previous version?

Thank you in advance for any guidance you can provide.

Sincerely,

Captura de Tela 2023-10-27 às 10 35 40