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(...)

Dependencies (0)

    Dev Dependencies (0)

      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