Socket
Book a DemoInstallSign in
Socket

broccoli-react

Package Overview
Dependencies
Maintainers
3
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

broccoli-react

Convert Facebook React JSX files to JS

latest
Source
npmnpm
Version
0.9.0
Version published
Maintainers
3
Created
Source

broccoli-react Build Status

A React JSX filter for broccoli.

Installation

npm install --save broccoli-react

Usage

var filterReact = require('broccoli-react');
tree = filterReact(tree);

Options

extensions

Type: Array Default: ['jsx']

Specify the extensions for the source files.

babelOptions

Type: Object Default: {}

Specify options for babel, useful for e.g. plugins, transforms etc.

tree = filterReact(tree, {
  extensions: ['js'],
  babelOptions: { plugins: ["transform-class-properties"] }
});

Keywords

broccoli-plugin

FAQs

Package last updated on 29 Jul 2020

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.