Skip to content

feat: father如何支持扩展esbuild配置 #823

@fliyggywanglsd

Description

@fliyggywanglsd

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

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