Skip to content

diplodoc-platform/babel-preset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@diplodoc/babel-preset

Babel preset for Gravity UI projects

Install

npm install --save-dev @diplodoc/babel-preset

Usage

Via .babelrc

{
  "presets": [
      "@diplodoc/babel-preset",
      {
        "env": {modules: false}, // defaults to {}
        "runtime": {useESModules: true}, // defaults to {}
        "typescript": true, // defaults to false
        "react": {runtime: "automatic"} // defaults to {}
      }
  ]
}