{"library":"babel-plugin-htm","type":"library","category":null,"description":"A Babel plugin that compiles htm's tagged template literal syntax (html`...`) into hyperscript calls, React.createElement, Preact h, or plain VNode objects. Version 3.1.1 is current, with a slower release cadence after the major 3.0.0 rework. Unlike JSX, htm uses standard template literals, requiring no build-time syntax changes beyond this plugin. The plugin offers flexible pragma configuration, auto-import options, and experimental outputs like plain objects or monomorphic structures. It integrates with React, Preact, and any hyperscript library and supports features like static subtree caching since v3.","language":"javascript","status":"active","version":"3.0.0","tags":["javascript","Hyperscript Tagged Markup","tagged template","template literals","html","htm","jsx","virtual dom","hyperscript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install babel-plugin-htm","imports":["module.exports = { plugins: [['htm', { pragma: 'h' }]] }","import { html } from 'htm'","import { html } from 'htm/preact'"]},{"cmd":"yarn add babel-plugin-htm","imports":[]},{"cmd":"pnpm add babel-plugin-htm","imports":[]}],"homepage":null,"github":"https://github.com/developit/htm","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/babel-plugin-htm","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/babel-plugin-htm/compatibility"}}