0.1.2 • Published 8 months ago

babel-plugin-jsx-to-mettle v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

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:

{
  "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:

{"plugins":[
  ["babel-plugin-jsx-to-mettle", {
    "tag": "html"
  }]
]}

License

MIT

Copyright (c) 2023-present, maomincoding