Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

feat(cli): babel preset-react 参数支持可配置 #1527

Merged
merged 1 commit into from Apr 14, 2021

Conversation

xierenyuan
Copy link
Contributor

babel-preset-remax 中 preact-react 支持传参 用于支持 可配置是否支持 New JSX Transform

使用

{
  presets: [
    [
      'remax',
      {
       react: {
         runtime: 'automatic'
       }
      },
    ],
  ];
}

@vercel
Copy link

vercel bot commented Apr 14, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/remaxjs/remax/CmUbkmJG5bSWLhwP228yjJBMaL6j
✅ Preview: https://remax-git-fork-xierenyuan-master-remaxjs.vercel.app

@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 5bf3050:

Sandbox Source
one Configuration

@codecov
Copy link

codecov bot commented Apr 14, 2021

Codecov Report

Merging #1527 (5bf3050) into master (db0e398) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1527   +/-   ##
=======================================
  Coverage   90.67%   90.67%           
=======================================
  Files         364      364           
  Lines        4429     4429           
  Branches      681      681           
=======================================
  Hits         4016     4016           
  Misses        405      405           
  Partials        8        8           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update db0e398...5bf3050. Read the comment docs.

@yesmeck
Copy link
Member

yesmeck commented Apr 14, 2021

如果默认就是 automatic 会有什么影响吗?

@yesmeck yesmeck merged commit 7844089 into remaxjs:master Apr 14, 2021
@xierenyuan
Copy link
Contributor Author

automatic 对依赖版本有要求, 升级依赖后可以设置成默认. 但是对老的代码会有未使用的react 引入.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants