Comments (2)
vite-plugin-vue2-jsx/src/index.ts
Line 102 in 622c2c9
compositionAPI: 'native'
is turned on by default in this plugin
You can turn it off manually if you are not using JSX in setup
functions.
However, the case-by-case fix is better in my opinion:
https://github.com/vuejs/jsx-vue2/releases/tag/v1.3.0#fn-1
If you encounter such issues after turning the flag on, you can manually add
const h = this.$createElement
to the beginning of the problematic function. The JSX plugin won't override your explicitly defined h. ↩
from vite-plugin-vue2-jsx.
Thanks a lot👏. I prefer fix case-by-case, After all the project has been migrated to vite.
from vite-plugin-vue2-jsx.
Related Issues (20)
- can this plugin as same as 'vite-plugin-vue2-jsx' plugin ? HOT 1
- How to enable 'decorator' syntax? HOT 1
- How to enable 'decorators' support? HOT 1
- When to support vite4
- Scoped css is not supported HOT 1
- 该插件不维护了吗 HOT 1
- How to use named slots with v-slot
- Hope to support it in single file components (. vue) HOT 1
- Vite 5.x support HOT 1
- Support ssr
- Why do errors occur when using JSX during installation using PNPM?
- h function context not same as webpack, which is right? HOT 2
- vue2.7.16中setup jsx语法中vModel无法绑定ref
- vue2 reports errors using jsx in the .vue file in vite5 HOT 4
- ts decorators isn't enabled HOT 3
- Is there a plan to support the following way of defining components
- 在.vue文件中编写jsx时出现编译错误 HOT 4
- How to use v-model in vue2.7 jsx HOT 7
- `defineComponent(setup)` not supported
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vite-plugin-vue2-jsx.