You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
P.S. I tried to create some unit tests in this repo to reproduce the problem but it looks like the tests are all running against Vue 3. I get it btw I have no idea how I would create a repo where I could test against two separate major releases.
Thank you for your reporting!
This is a bug for @vitejs/plugin-vue2
When we will configure bridge: true options on vite.config.ts, cusomt block resources should be bundled for options API
Reporting a bug?
I'm using vite and vue 2.7 I have an SFC that looks like this:
The message from the custom i18n block doesn't get translated. In another component that uses script setup and composition API everything works fine
However global messages are seen from both components
Expected behavior
I expect that cusom i18n blocks will work with both Composition API and Options API
Reproduction
You can find the example here:
https://stackblitz.com/edit/vitejs-vite-sv4fcz?file=src%2FApp.vue,src%2FTest.vue,vite.config.js,src%2Fmain.js,package.json
Issue Package
unplugin-vue-i18n
System Info
Screenshot
No response
Additional context
vite plugin config looks like this:
And heere is how I create an instance of i18n:
Validations
The text was updated successfully, but these errors were encountered: