-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Import raw JSX from npm package #5274
Comments
Create React App v2 supports importing modern JavaScript from an npm package. JSX is a non-standard syntax feature, and thus should be compiled away before being published. Please see the comment here: #5103 (comment)
|
Is there a way to
import
jsx
files which will be compiled at the build time too?I thought
CRA 2.0
would support importing nonES5
+babel
... any clarifications?Reproduce:
Error:
The text was updated successfully, but these errors were encountered: