Skip to content

mikhail-ev/babel-plugin-transform-stringify-jsx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

babel-plugin-transform-stringify-jsx

Stringify-jsx plugin for babel. Read more about babel plugins or use stringify-jsx directly.

Quick start

npm i --save-dev babel-plugin-transform-stringify-jsx

Inline:

const babel = require('@babel/core');
babel.transform('code', { plugins: [['transform-stringify-jsx', { /* stringify-jsx options */}]], parserOpts: { plugins: ['jsx']} });

.babelrc:

{
  "parserOpts": {
    "plugins": ["jsx"]
  },
  "plugins": [["transform-stringify-jsx", { /* stringify-jsx options */ }]]
}