developit / developit/htm

Babel Macro

オープン
#150 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る
discussion enhancement good first issue help wanted proposal
主要言語
JavaScript
スター
9k
フォーク
181
PR マージ指標
30日以内にマージされた PR はありません

説明

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

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
babel, javascript
領域
frontend, tooling
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。