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

JSX in SFC doesn't work #429

Open
Open
@Akryum

Description

@Akryum

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions