babel-preset-frack
v0.0.1
Published
Babel preset used by Front-end Dev Stack
Downloads
1
Readme
babel-preset-frack
This package includes the Babel preset used by Front-end Dev Stack.
Please refer to its documentation:
- Getting Started – How to create a new app.
- User Guide – How to develop apps bootstrapped with Front-end Dev Stack.
Usage in Front-end Dev Stack Projects
The easiest way to use this configuration is with Front-end Dev Stack, which includes it by default. You don’t need to install it separately in Front-end Dev Stack projects.
Usage Outside of Front-end Dev Stack
If you want to use this Babel preset in a project not built with Front-end Dev Stack, you can install it with following steps.
First, install Babel.
Then create a file named .babelrc
with following contents in the root folder of your project:
{
"presets": ["react-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.