Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 802 Bytes

File metadata and controls

28 lines (20 loc) · 802 Bytes

Usage

module.exports = {
  presets: ['babel-preset-optimise'],
};

Note: initially it was meant to be called babel-preset-optimize, but the package was squatted before I get able to push all this things. Born in discussion with @JounQin in 1stG/configs issue#8.

What it includes?

It uses the most recent and modern preset by the Babel Team - @babel/preset-modules, plus optionally the TypeScript and the React presets. It also includes a several optimization plugins from the Babel Minify project which are very well curated for best and small output.

API

{%= include(process.cwd() + "/docs/src/index.md") %}