@dlghq/babel-preset-dialog

2020-02-14

@dlghq/babel-preset-dialog

Babel preset for dialog projects

Babel Preset

Babel preset for dialogprojects.

Installation

npm install --save-dev @dlghq/babel-preset-dialog

Usage

Add @dlghq/babel-preset-dialogto your .babelrc.

{
  "presets": [
    [
      "@dlghq/babel-preset-dialog",
      {
        "strict": false,
        "optimize": true,
        "typecheck": true
      }
    ]
  ]
}

Options

NameDefaultDescription
specfalseEnable spec compliance.
flowfalseConvert flow-types to comments.
loosetrueEnable loose mode.
reacttrueEnable react transforms.
es2015trueEnable ES2015 syntax.
esnexttrueEnable ESNext syntax.
stricttrueAdd "use strict";to each file.
runtimetrueEnable babel runtime. Requires babel-runtimepackage.
modulestrueEnable ES2015 modules transforms.
helpersfalseEnable babel external helpers.
optimizefalseEnable optimization plugins.
typecheckfalseEnable typecheck plugin.
developmentfalseEnable development mode plugins.
dynamicImporttrueEnable dynamic import.

License

Apache-2.0

以上是 @dlghq/babel-preset-dialog 的使用教程帮助文档。

  • @dlghq/babel-preset-dialog官网:官网
  • @dlghq/babel-preset-dialog源码仓库:源码仓库

上一篇:cody-cli
下一篇:@dinoboff/babel-preset-stage-4
相关教程
关注微信

扫码加入 JavaScript 社区

相关文章
暂无相关文章

首次访问,需要验证
微信扫码,关注即可
(仅需验证一次)

欢迎加入 JavaScript 社区

号内回复关键字:

回到顶部