babel-plugin-jsx-to-strve

2.1.0 • Public • Published

babel-plugin-jsx-to-strve

This plugin converts JSX into Tagged Templates that work with strve.

Usage

In your Babel configuration (.babelrc, babel.config.js, "babel" field in package.json, etc), add the plugin:

{
  "plugins": [
    ["babel-plugin-jsx-to-strve"]
  ]
}

options

tag=html

By default, babel-plugin-jsx-to-strve 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-strve", {
    "tag": "html"
  }]
]}

License

MIT

Copyright (c) 2023-present, maomincoding

Package Sidebar

Install

npm i babel-plugin-jsx-to-strve

Weekly Downloads

2

Version

2.1.0

License

MIT

Unpacked Size

13.3 kB

Total Files

5

Last publish

Collaborators

  • maomincoding