Skip to content

Warn about JSX file extension #290

Closed
@gaearon

Description

@gaearon

Update

We support JSX extension since 0.4.1 even though we don’t recommend it.
Read the release notes.


Original Thread

We don’t support it. AFAIK there is no good reason to: #87 (comment).

We should do two things:

  • Document that.
  • Provide a descriptive error when you attempt to import a JSX file. This should be fairly easy to do with a Webpack plugin. You can look at this project for inspiration (although obviously the solution will be different).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions