harbabel-plugin-transform-taroapi

10.5.2 • Public • Published

harbabel-plugin-transform-taroapi

用于 H5 端转换 import default Taro API 为模块化引用,以达到 tree-shaking 的目的。

example

import Taro from '@harrysong/taro'
Taro.request(...)

会转换为:

import { request } from '@harrysong/taro-h5'
request(...)

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
10.5.21latest

Version History

VersionDownloads (Last 7 Days)Published
10.5.21
3.5.20
3.5.00

Package Sidebar

Install

npm i harbabel-plugin-transform-taroapi

Weekly Downloads

0

Version

10.5.2

License

MIT

Unpacked Size

18 kB

Total Files

8

Last publish

Collaborators

  • harrysong