Skip to content
This repository was archived by the owner on Aug 4, 2021. It is now read-only.
This repository was archived by the owner on Aug 4, 2021. It is now read-only.

Breaks on valid JSX code #123

Closed
Closed
@datenreisender

Description

@datenreisender

TL&DR: Please update the tippex dependency.

Release 0.8.1 of rollup-plugin-typescript breaks on this JSX code:

import * as React from 'react';
const S = () => <span><img src="s" /></span>;
const C = () => {return <div />; };

The error message is:

[!] (Plugin at pos 6 plugin) Error: rollup-plugin-typescript: Unexpected character (3:34). If this is valid JavaScript, it's probably a bug in tippex. Please raise an issue at https://github.com/Rich-Harris/tippex/issues – thanks!


const C = () => {return <div />; };

                                   ^; when processing: '…

As noted, this is a problem with tippex, but only with the outdated version 2. When using the same code in the test suite of tippex 3, the error did not occur anymore.

So, please upgrade the tippex depedency to version 3.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions