@financial-times/babel-preset-ip-wxp
v1.0.3babel-preset-ip-wxp
This is the babel preset used by the worker experience team.
It uses the env preset configured for node 8.10.0
as it's base with the below extras:
- @babel/plugin-proposal-object-rest-spread - to enable the spread operator with objects as well as arrays
- @babel/plugin-proposal-optional-chaining - because it's great and removes the need for a bunch of pointless code
This module can be used via package.json
:
"babel": {
"presets": [
"@financial-times/ip-wxp"
]
},
or .babelrc
{
presets: [
'@financial-times/ip-wxp'
]
}
npm i @financial-times/babel-preset-ip-wxp
Metadata
- MIT
- Whatever
- Internal Products
- released 6/1/2018