The Babel preset used within Y Software AB.
In your project's .babelrc.js
module.exports = {
presets: [
['y', {
// debug: false,
// loose: false,
// spec: false,
// useBuiltIns: true,
// 'preset|plugin': {...options}
}]
]
};
Optionally, you can run node_modules/babel-preset-y/npm-install-peer-dependencies
in order to install the required peer dependencies.
NOTE If you're using an earlier version than Babel 7.0, you can upgrade your .babelrc
to be dynamic
and use .babelrc.js
by setting it to:
{
"preset": [
"./.babelrc.js"
]
}
See https://fatfisz.com/blog/using-babelrc-js-today .
Pass debug
, loose
, spec
or useBuiltIns
to configure presets/plugins,
as per the semantics defined by babel-preset-env.
Included presets/plugins can be
- further configured by sending options to each of them
- disabled by sending
{"disabled": true}
asoptions
README.babel-plugin-y-export-all.md
To disable in .babelrc.js
:
module.exports = {
presets: [
['y', {
'babel-plugin-y-export-all': {
disabled: true
}
}]
]
};
README.babel-plugin-y-src-arg.md
To disable in .babelrc.js
:
module.exports = {
presets: [
['y', {
'babel-plugin-y-src-arg': {
disabled: true
}
}]
]
};
- https://github.com/kmagiera/babel-watch
- https://github.com/furstenheim/babel-plugin-meaningful-logs
- https://github.com/kentcdodds/babel-plugin-preval
- https://github.com/codemix/flow-runtime/tree/master/packages/babel-plugin-flow-runtime
- https://github.com/vitalets/babel-plugin-runtyper
- https://github.com/loganfsmyth/babel-plugin-transform-builtin-extend
- https://github.com/miraks/babel-plugin-implicit-return
- https://github.com/andreineculau/babel-plugin-thin-arrows