Rollup-plugin-vue: JSX in SFC doesn't work

Created on 31 Jan 2021  路  2Comments  路  Source: vuejs/rollup-plugin-vue

Version

5.1.9

Reproduction link

https://github.com/Akryum/repro-rollup-vue2-jsx

Steps to reproduce

yarn build

What is expected?

Build succeeds

What is actually happening?

[!] Error: Unexpected token
src/Hello.vue?rollup-plugin-vue=script.js (4:11)
2: export default {
3:   render (h) {
4:     return <div>Hello</div>
              ^
5:   }
6: }
Error: Unexpected token
v5

Most helpful comment

Is there any progress on this issue?

All 2 comments

Is there any progress on this issue?

i have same problem.

Was this page helpful?
0 / 5 - 0 ratings