4.0.0 • Published 5 years ago

babel-plugin-transform-stringify-jsx v4.0.0

Weekly downloads
22
License
MIT
Repository
github
Last release
5 years ago

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", "flow"]
  },
  "plugins": [["transform-stringify-jsx", { /* stringify-jsx options */ }]]
}