Skip to content

Latest commit

 

History

History
20 lines (18 loc) · 686 Bytes

File metadata and controls

20 lines (18 loc) · 686 Bytes

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 */ }]]
}