@charlietango/babel

1.0.0 • Public • Published

@charlietango/babel

Babel preset to configure a setup that allows us to work with React alongside Flow or Typescript.

Installation

Create a file named .babelrc with following contents in the root folder of your project:

{
  "presets": ["@charlietango/babel"]
}

Extra plugins

  • babel-plugin-lodash - Ensures lodash is optimized when imported
  • babel-plugin-macros - Enable support for macros
  • react-hot-loader - Support hot reloading of react

CSS-in-JS

If you need to use a CSS-in-JS framework, you should add the presets/plugins to the babel configuration according to the documentation.

styled-components

{
  "plugins": ["babel-plugin-styled-components"]
}

emotion

{
  "presets": ["@emotion/babel-preset-css-prop"]
}

/@charlietango/babel/

    Package Sidebar

    Install

    npm i @charlietango/babel

    Weekly Downloads

    0

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    7.09 kB

    Total Files

    4

    Last publish

    Collaborators

    • frederik_bosch
    • thebuilder