Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 1.9 KB

README.md

File metadata and controls

28 lines (22 loc) · 1.9 KB

babel-preset-yoshi

Yoshi provides its own preset for full-stack, client or Node.js projects. It is pre-configured, maintained and tuned for the current state of Yoshi.

Usages in Yoshi projects

Configure yoshi to use its built-in preset by adding the following to your package.json:

{
  "babel": {
    "presets": ["yoshi"]
  }
}

Wanna know what's inside?

Configuration options

  • targets: Avoid redundant transformations if specified targets already support some of ESNext features. See more preset-env#targets. By default, if no targets provided, it will compile for all targets.
  • modules (default: "commonjs"): Enable transformation of ES6 module syntax to another module type. See preset-env#modules. Set false to ignore module transforms.
  • ignoreReact (default: false): ignores plugins and presets related to React.
  • debug (default: false): Outputs the targets/plugins used according to specified targets. See preset-env#debug.