Babel preset for Typescript projects
Using npm:
npm install --save-dev @intelie/babel-preset
npx [email protected] --dev --only-peers @intelie/babel-preset
or using yarn:
yarn add @intelie/babel-preset --dev
npx [email protected] --dev --only-peers --yarn @intelie/babel-preset
This preset has several plugins and presets.
@babel/env
@babel/react
@babel/flow
@babel/preset-typescript
const-enum
babel-plugin-styled-components
.babelrc
{
"presets": ["@intelie/babel-preset"]
}
Change babel.config.js
and it will be served as main file of the library.