Babel Macro
- Lenguaje dominante
- JavaScript
- Estrellas
- 9k
- Forks
- 181
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
It would be nice to have a babel macro that automatically runs the babel plugin to remove the runtime. That way, this project would work out of the box with "zero" config tools like create-react-app.
I'm thinking it could be something like:
```js
import {html} from 'htm/preact/macro'
```
This is similar conceptually to CSS-IN-JS libraries providing a macro for their tools. See https://emotion.sh/docs/babel-macros
Guía de contribución
Línea de trabajo
Start by reading the existing Babel plugin and the Babel Macros documentation linked in the issue, then compare the proposed htm/preact/macro import with the create-react-app zero-config constraint. Done means the requested macro entry point works with that setup and its behavior is verified against the existing plugin; the issue does not name repository files or tests.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- babel, javascript
- Área
- frontend, tooling
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 25/100