0.1.0 • Published 5 years ago
@bilue/babel-preset-react v0.1.0
@bilue/babel-preset-react
This package provides an opinionated Babel config for React projects using TypeScript, intended to be used for all of our React projects at Bilue.
Installation
# Yarn
yarn add --dev @bilue/babel-preset-react
# npm
npm save --dev @bilue/babel-preset-react
Usage
In your Babel configuration, usually a .babelrc
file at the root of your project, add the following:
{
"presets": ["@bilue/react"]
}
Features
- Support for all ES2018 features in vanilla JavaScript files
- Support for the proposed object rest spread and class fields syntax in Vanilla JavaScript
- Support for JSX syntax in vanilla JavaScript files, and TypeScript files with the
.tsx
extension - All TypesScript features supported by the Babel TypeScript preset, which at this point includes everything except
namespace
s andconst enum
s. - Polyfills to support a wide range of browsers
0.1.0
5 years ago
0.1.0-alpha.7
5 years ago
0.1.0-alpha.6
5 years ago
0.1.0-alpha.5
5 years ago
0.1.0-alpha.4
5 years ago
0.1.0-alpha.2
5 years ago
0.1.0-alpha.1
5 years ago
0.1.0-alpha.0
5 years ago