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.
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.
{%= include(process.cwd() + "/docs/src/index.md") %}