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.
Thanks for the quick fix, I'm gonna play with the new release, please discard the comment I deleted if you got one in your notifications, I think I misread the commit with ! instead of actual !!.
Related plugins
plugin-vue
plugin-vue-jsx
Describe the bug
Base on implementation here : https://github.com/vitejs/vite-plugin-vue/blob/main/packages/plugin-vue/src/index.ts#L224
And the following state :
features.optionsAPI
is set tofalse
define
set in configIt results in this expression
And unfortunately, the whole expression results to
true
.Indeed
(false || undefined) === undefined
, and then comes the nullish coalescing operator.I think what we want would be :
I guess it's not a problem for
__VUE_PROD_DEVTOOLS_
&__VUE_PROD_HYDRATION_MISMATCH_DETAILS__
because they fallback tofalse
.Reproduction
https://stackblitz.com/edit/vitejs-vite-y1sguk
Steps to reproduce
features.optionsAPI
and runnpm run build
define.__VUE_OPTIONS_API__
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: