@dlghq/babel-preset-dialog

Babel preset for dialog projects

Stats

StarsIssuesVersionUpdatedCreatedSize
@dlghq/babel-preset-dialog
014.4.02 years ago5 years agoMinified + gzip package size for @dlghq/babel-preset-dialog in KB

Readme

Babel Preset

Babel preset for dialog projects.

Installation

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

Usage

Add @dlghq/babel-preset-dialog to your .babelrc.

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

Options

Name Default Description
spec false Enable spec compliance.
flow false Convert flow-types to comments.
loose true Enable loose mode.
react true Enable react transforms.
es2015 true Enable ES2015 syntax.
esnext true Enable ESNext syntax.
strict true Add "use strict"; to each file.
runtime true Enable babel runtime. Requires babel-runtime package.
modules true Enable ES2015 modules transforms.
helpers false Enable babel external helpers.
optimize false Enable optimization plugins.
typecheck false Enable typecheck plugin.
development false Enable development mode plugins.

License

Apache-2.0

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.