New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@computerrock/babel-preset-react-lib

Package Overview
Dependencies
Maintainers
9
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@computerrock/babel-preset-react-lib

Babel preset for React libraries

  • 3.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-94.29%
Maintainers
9
Weekly downloads
 
Created
Source

@computerrock/babel-preset-react-lib

This package contains Babel preset used for JavaScript/React libraries.

Usage

Install package and peer dependencies by running:

$ npm install @babel/core@^7.4.3 @babel/runtime-corejs3@^7.4.3
$ npm install core-js@^3.0.1 regenerator-runtime@^0.13.2
$ npm install @computerrock/babel-preset-react-lib@^2.1.0 --save-dev 

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

{
  "presets": ["@computerrock/babel-preset-react-lib"]
}

This preset uses the useBuiltIns option with transform-object-rest-spread and transform-react-jsx, which assumes that Object.assign is available or polyfilled.

FAQs

Package last updated on 14 Dec 2023

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc