This is a babel preset meant for React projects built with kyt.
See the included presets and plugins here (Note: this preset includes babel-preset-kyt-core)
To use in your project:
npm install babel-preset-kyt-react --save
- In your .babelrc:
{
presets: [
"babel-preset-kyt-react"
]
}
(see documentation for Babel preset options)
-
envOptions
(Object
)- pass down babel-preset-env options to babel-preset-kyt-core. See more in theenvOptions
kyt-core documentation. -
includeRuntime
(Boolean
)- whether or not to includebabel-plugin-transform-runtime
; default:false
- Updates
babel-preset-kyt-core
to0.3.0
to take advantage ofbabel-preset-env
.babel-preset-kyt-react
passes down options to extend preset-env, so you can read more about theenvOptions
option in the kyt-core.
- Updates
babel-preset-kyt-core
to0.2.0
to allow parsing of dynamicimport()
.