@fir-ui/babel-preset-library
Babel preset for fir-ui
Last updated 9 years ago by funch .
MIT · Original npm · Tarball · package.json
$ npm install @fir-ui/babel-preset-library 
SYNC missed versions from official npm registry.

Babel preset for fir-ui

📦 包含的预设/插件

📥 安装

yarn add @fir-ui/babel-preset-library -D

🔧 使用

{
  "presets": [
    [
      "@fir-ui/library",
      {
        "loose": true
      }
    ]
  ]
}

配置

选项 类型 默认值 说明
loose Boolean true true:开启宽松模式,生成的代码更简单直接,也更快。

false:生成的代码更符合最新的 ECMAScript 规范,但较笨重。
polyfill Boolean false true:为出现在代码中的,但是在目标环境(浏览器、 Node 等)不支持的语法或对象自动引入垫片。

false:不自动引入垫片。
lodash Boolean true 设为 true 即可按需加载 lodash 啦,具体用法看这里:babel-plugin-lodash
env Object ==> 这是 @babel/preset-env 的默认配置,你可在 env 里覆盖它们:
{
    "loose": "等于上面的 loose 选项",
    "useBuiltIns": "上面的 polyfill 为 true ,则为 usage ,否则为 false",
    "exclude": [
        "transform-regenerator",
        "transform-async-to-generator"
    ]
}

Current Tags

  • 0.0.12                                ...           latest (9 years ago)

8 Versions

  • 0.0.12                                ...           9 years ago
  • 0.0.11                                ...           9 years ago
  • 0.0.9                                ...           9 years ago
  • 0.0.8                                ...           9 years ago
  • 0.0.7                                ...           9 years ago
  • 0.0.6                                ...           9 years ago
  • 0.0.4                                ...           9 years ago
  • 0.0.1                                ...           9 years ago
Maintainers (1)
Downloads
Total 25
Today 0
This Week 7
This Month 25
Last Day 0
Last Week 18
Last Month 0
Dev Dependencies (4)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE