intlify / bundle-tools

bundling for intlify i18n tools
MIT License
232 stars 37 forks source link

Generated `messages` virtual file contains syntax error when some locale files written in yaml is empty #374

Open so1ve opened 1 month ago

so1ve commented 1 month ago

Reporting a bug?

Generated messages virtual file contains syntax error when some locale files written in yaml is empty

Expected behavior

Should not contain syntax errors.

Reproduction

Unable to create a "minimal" one now, but soon

But it should be pretty straight-forward to reproduce using such configuration: vite.config.ts

Issue Package

unplugin-vue-i18n

System Info

Unable to run the command now - will update later using my PC

Screenshot

No response

Additional context

No response

Validations

kazupon commented 1 month ago

Thank you for your reporting! I'll try to reproduce this issue later. :)

so1ve commented 1 month ago

Thanks! Sorry for the inconvenience, I'm unable to use my PC now 😓