rollup-plugin-vue icon indicating copy to clipboard operation
rollup-plugin-vue copied to clipboard

JSX in SFC doesn't work

Open Akryum opened this issue 4 years ago • 2 comments

Version

5.1.9

Reproduction link

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

Steps to reproduce

yarn
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

Akryum avatar Jan 31 '21 11:01 Akryum

Is there any progress on this issue?

wuyuweixin avatar May 27 '21 08:05 wuyuweixin

i have same problem.

longshihui avatar Jul 07 '21 10:07 longshihui