Create-react-app: [v4] Change JSX runtime detection mechanism to presence of /jsx-runtime.js

Created on 9 Oct 2020  路  2Comments  路  Source: facebook/create-react-app

https://github.com/facebook/create-react-app/pull/9645 detects 17+ which is not ideal because we're planning to release 16.x, 15.x, and 0.14.x releases with the new JSX runtime included. Ideally we should instead look at whether react/jsx-runtime.js exists.

bug report needs triage

All 2 comments

We need to do some work on this anyway (for Jest support), so we can make all of these changes at once.

@iansu I can pick this up tomorrow if that's OK with you?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

barcher picture barcher  路  3Comments

adrice727 picture adrice727  路  3Comments

xgqfrms-GitHub picture xgqfrms-GitHub  路  3Comments

rdamian3 picture rdamian3  路  3Comments

AlexeyRyashencev picture AlexeyRyashencev  路  3Comments