Skip to content
This repository has been archived by the owner on Jan 18, 2022. It is now read-only.

JSX in SFC doesn't work #429

Open
Akryum opened this issue Jan 31, 2021 · 2 comments
Open

JSX in SFC doesn't work #429

Akryum opened this issue Jan 31, 2021 · 2 comments
Labels

Comments

@Akryum
Copy link
Member

Akryum commented Jan 31, 2021

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
@wuyuweixin
Copy link

Is there any progress on this issue?

@longshihui
Copy link

i have same problem.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants