babel-preset-niksy
Babel preset for my projects.
Install
npm install babel-preset-niksy --save
Usage
Add this config to your .babelrc
:
{
"presets": [
"niksy"
]
}
If you’re using presets, it’s highly recommended to apply default preset:
{
"presets": [
"niksy/other-preset",
"niksy"
]
}
Options
You can pass additional options to default preset.
{
"presets": [
["niksy", {
// Additional options
}]
]
}
@babel/preset-env
Type: Object
Options for @babel/preset-env
.
Presets
In addition to default preset, there are also specific presets. You can apply
multiple presets with Babel presets
option.
Next
Features usually available in next major Node.js version or latest proposals.
{
"presets": [
"niksy/next"
]
}
React
Process React code (e.g. JSX syntax).
{
"presets": [
"niksy/react"
]
}
Vue
Process Vue code (e.g. code with JSX syntax).
{
"presets": [
"niksy/vue"
]
}
License
MIT © Ivan Nikolić