Socket
Socket
Sign inDemoInstall

@charlietango/babel

Package Overview
Dependencies
243
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @charlietango/babel

Babel preset used by Charlie Tango


Version published
Weekly downloads
4
increased by100%
Maintainers
2
Created
Weekly downloads
 

Readme

Source

@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"]
}

FAQs

Last updated on 04 Dec 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc