1.0.1 • Published 4 years ago
@cyca/babel-preset v1.0.1
@cyca/babel-presets
This package is forked from create-react-app's babel-preset-react-app
- Main entry point (index) is the kitchen sink.
- cra.js is the nearest to creat-react-app's implementation (but uses async to promises transforms instead of generators)
- extended.js contains some optionals / nice to have plugins
Usage Outside of Create React App
use with a babel config e.g .babelrc
with following contents in the root
folder of your project:
{
"presets": ["@cyca/babel-preset"]
}
or just use other included preset you want.
This preset uses the useBuiltIns
option with
transform-object-rest-spread
and transform-react-jsx,
which assumes that Object.assign
is available or polyfilled.
Usage with Flow
Flow is enabled by default. Make sure you have a .flowconfig
file at the root
directory. You can also use the flow
option on .babelrc
:
{
"presets": [["react-app", { "flow": true, "typescript": false }]]
}
Usage with TypeScript
TypeScript is enabled by default. Make sure you have a tsconfig.json
file at
the root directory. You can also use the typescript
option on .babelrc
:
{
"presets": [["react-app", { "flow": false, "typescript": true }]]
}
1.1.0-env.1
4 years ago
1.1.0-env
4 years ago
1.0.1
4 years ago
1.0.1-beta.2
4 years ago
1.0.1-beta.1
4 years ago
1.0.1-beta.0
4 years ago
1.0.0
4 years ago
0.0.5
5 years ago
0.0.4
5 years ago