Golang bot for managing discord verifications
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Gregory Rudolph 8a6e029f83
Add react
4 years ago
..
lib Add react 4 years ago
.npmignore Add react 4 years ago
README.md Add react 4 years ago
package.json Add react 4 years ago

README.md

babel-plugin-transform-react-jsx-source

Adds source file and line number to JSX elements.

Example

In

<sometag />

Out

<sometag __source={ { fileName: 'this/file.js', lineNumber: 10 } } />

Installation

npm install --save-dev babel-plugin-transform-react-jsx-source

Usage

.babelrc

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

Via CLI

babel --plugins transform-react-jsx-source script.js

Via Node API

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