0.0.2 • Published 2 years ago
babel-preset-uukit-app v0.0.2
babel-preset-uukit-app
Usage
If you want to use this Babel preset in a project, you can install it with the following steps.
First, install Babel.
Then install babel-preset-react-app.
npm install babel-preset-uukit-app --save-dev
Then create a file named .babelrc
with following contents in the root folder of your project:
{
"presets": ["uukit-app"]
}
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 TypeScript
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 }]]
}