You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/babel-plugin-transform-jsx-to-tagged-templates/README.md
+10-2Lines changed: 10 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,12 +28,20 @@ npm i -D babel-plugin-transform-jsx-to-tagged-templates
28
28
29
29
## Options
30
30
31
-
There's only one option: `tag`. It lets you specify the function to use for prefixing templates. The default is "html":
31
+
The following options are available:
32
+
33
+
| Option | Type | Default | Description
34
+
|--------|---------|----------|------------
35
+
| `tag` | String | `"html"` | The "tag" function to prefix [Tagged Templates] with.<br> _Useful when [Auto-importing a tag function](#auto-importing-the-tag)._
36
+
| `html` | Boolean | `false` | `true` outputs HTML-like templates for use with [lit-html].<br> _The is default XML-like, with self-closing tags._
37
+
38
+
Options are passed to a Babel plugin using a nested Array:
0 commit comments