2.2.1 • Published 2 years ago

@dawnjs/babel-preset-dawn v2.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@dawnjs/babel-preset-dawn

npm npm

Usage

In .babelrc :

{
  "presets": [
    [
      "@dawnjs/babel-preset-dawn",
      {
        "typescript": true,
        "react": {
          "development": true
        }
      }
    ]
  ]
}

Options

NameTypeDescription
typescriptbooleanWhether support typescript or not
envobjectOptions pass to @babel/preset-env
reactboolean | objectWhether support react or not. If pass object, it's options pass to @babel/preset-react
reactRequirebooleanWhether include babel-plugin-react-require or not
transformRuntimeobjectOptions pass to @babel/plugin-transform-runtime, disabled if not set it