Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mikhail-ev/babel-plugin-transform-stringify-jsx

stringify-jsx plugin for babel
https://github.com/mikhail-ev/babel-plugin-transform-stringify-jsx

babel babel-plugins jsx stringify-jsx

Last synced: 3 days ago
JSON representation

stringify-jsx plugin for babel

Awesome Lists containing this project

README

        

# babel-plugin-transform-stringify-jsx
[Stringify-jsx](https://github.com/TargetTaiga/stringify-jsx) plugin for babel. Read more about [babel plugins](https://babeljs.io/docs/en/plugins#docsNav) or use [stringify-jsx](https://github.com/TargetTaiga/stringify-jsx) directly.

## Quick start
```npm i --save-dev babel-plugin-transform-stringify-jsx```

Inline:
```js
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 */ }]]
}
```