JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q24168F
  • License MIT

Basic babel preset

Package Exports

  • @dawnjs/babel-preset-dawn

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@dawnjs/babel-preset-dawn) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@dawnjs/babel-preset-dawn

npm npm

Usage

In .babelrc :

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

Options

Name Type Description
typescript boolean Whether support typescript or not
env object Options pass to @babel/preset-env
react boolean | object Whether support react or not. If pass object, it's options pass to @babel/preset-react
reactRequire boolean Whether include babel-plugin-react-require or not
transformRuntime object Options pass to @babel/plugin-transform-runtime, disabled if not set it