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

babel-plugin-transform-jsx-include-source

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-transform-jsx-include-source

Add a data-source prop to all JSX Elements

0.9.0
latest
Source
npm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

babel-plugin-transform-jsx-include-source

Adds source file to JSX elements.

Example

###In

<sometag />

###Out

<sometag data-source={__jsxFileName}/>

Installation

$ npm install babel-plugin-transform-jsx-include-source

Usage

.babelrc

{
  "plugins": ["transform-jsx-include-source"]
}

Via CLI

$ babel --plugins transform-jsx-include-source script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["transform-jsx-include-source"]
});

Keywords

babel-plugin

FAQs

Package last updated on 08 Feb 2016

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