-
Notifications
You must be signed in to change notification settings - Fork 287
Open
Labels
Description
What problem does this feature solve?
react18项目支持react新的编译模式(https://legacy.reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html)
react17之前,jsx会被编译为React.createElement。这就要求业务代码里必须要显示写"import React from 'react'";新的编译模式是将jsx编译为react/jsx-runtime。
esbuild是支持这个配置的。但是father没有开放这个配置,导致father打包的bundless产物使用的旧版jsx转换规则
Possible Solution (optional)
No response
Reactions are currently unavailable