Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maomincoding/babel-plugin-jsx-to-mettle
This plugin converts JSX into Tagged Templates that work with amazed.js.
https://github.com/maomincoding/babel-plugin-jsx-to-mettle
amazed babel-plugin jsx
Last synced: about 1 month ago
JSON representation
This plugin converts JSX into Tagged Templates that work with amazed.js.
- Host: GitHub
- URL: https://github.com/maomincoding/babel-plugin-jsx-to-mettle
- Owner: maomincoding
- License: mit
- Created: 2024-11-15T16:18:33.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-11-16T16:19:23.000Z (about 1 month ago)
- Last Synced: 2024-11-17T09:02:24.919Z (about 1 month ago)
- Topics: amazed, babel-plugin, jsx
- Language: JavaScript
- Homepage:
- Size: 49.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Babel-plugin-jsx-to-mettle
This plugin converts JSX into Tagged Templates that work with mettle.js.
## Usage
In your Babel configuration (`.babelrc`, `babel.config.js`, `"babel"` field in package.json, etc), add the plugin:
```js
{
"plugins": [
["babel-plugin-jsx-to-mettle"]
]
}
```### options
#### `tag=html`
By default, `babelPluginJsxToMettle` will process all Tagged Templates with a tag function named `html`. To use a different name, use the `tag` option in your Babel configuration:
```js
{"plugins":[
["babel-plugin-jsx-to-mettle", {
"tag": "html"
}]
]}
```## License
[MIT](http://opensource.org/licenses/MIT)
Copyright (c) 2023-present, maomincoding