New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-transform-miniprogram

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-transform-miniprogram

babel plugin tranfrom api xx to xx

  • 0.11.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
decreased by-11.11%
Maintainers
1
Weekly downloads
 
Created
Source

babel-plugin-transform-miniprogram

babel plugin transform miniprogram's api general solution scheme

wx => swan

Usage

# install
yarn add babel-plugin-transform-miniprogram --dev

.babelrc

{
  "plugins": ["transform-miniprogram"]
}

options

选项名说明默认值可选值
source需要转义的关键字wx
target替换值swanswan,my,tt
lib适配库(^0.2.0)miniapp-adapter

details

  • v0.3.1 起支持支付宝转换,转换适配 Component => AdapterComponent, Page => AdapterPageBehavior => AdapterBehavior, 适配库 miniapp-adpater(^1.3.0)

  • 可以在文件中设置忽略关键字 @jgb-ignore 忽略转换。e.g.

    // @jgb-ignore
    

FAQs

Package last updated on 22 Sep 2020

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc