developit / developit/htm

Babel Macro

Abierto
#150 4 comentarios 0 reacciones 0 asignados Ver en GitHub
discussion enhancement good first issue help wanted proposal
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

Abrir la 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

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.