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

babel-preset-bdr

yarn add @bdr/babel-preset-bdr -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

  • 1.4.0                                ...           latest (9 years ago)

3 Versions

  • 1.4.0                                ...           9 years ago
  • 1.3.3                                ...           9 years ago
  • 1.3.0                                ...           9 years ago
Maintainers (1)
Downloads
Total 10
Today 0
This Week 2
This Month 10
Last Day 0
Last Week 8
Last Month 0
Dev Dependencies (4)
Dependents (1)

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