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
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Set define.__VUE_OPTIONS_API__ to false will eventually be resolved to true in v5.2.1, and this issue was fixed in v5.2.2. You need to change false to true if you need to enable the options API.
the Icon using options API, so you need set define.__VUE_OPTIONS_API__ to true
@edison1105 Understood. I do not personally use Options API in my project, but apparently the Iconify package does. If you're okay with the breaking change, feel free to close. I just wanted to report it just in case.
Related plugins
plugin-vue
plugin-vue-jsx
Describe the bug
define.VUE_OPTIONS_API = false breaks some packages on 5.2.2, where previously it did not on 5.2.1 .
From the docs, this breakage (and risk) is potentially acceptable, but flagging due to the breaking change.
My test case was the Iconify package
@iconify/vue
Reproduction
https://stackblitz.com/edit/vitejs-vite-eytuhvxr?file=vite.config.js
Steps to reproduce
Install
@iconify/vue
packageInstall
@vitejs/vue-plugin-vue
vue package at 5.2.1Set
define.__VUE_OPTIONS_API__
tofalse
Run the vite dev server, import Iconify package and use component package.
Observe working
Update to
@vitejs/vue-plugin-vue
vue package to 5.2.2Observe breakage
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: