Babel Macro
- 主要言語
- 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