Socket
Socket
Sign inDemoInstall

compat-god

Package Overview
Dependencies
3
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    compat-god

多端框架兼容封装


Version published
Weekly downloads
1
Maintainers
1
Created
Weekly downloads
 

Readme

Source

compat-god

taro封装。

2022-02-15

  • 将 taro 作为 peerdependencies 引入,不显式安装,直接导出 @tarojs/taro 和 @tarojs/components 下面的所有成员。
  • 解决组件只能从 @tarojs/components 引入的问题
    • 修改taro-transformer-wx下的JSXOpeningElement判断
  • 需要忽略 react/react-in-jsx-scope 规则,否则jsx会报错: 'Taro' must be in scope when using JSX
  • 需要继承API/组件的类型声明

FAQs

Last updated on 16 Feb 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc