developit / developit/htm

small demo

未關閉
#28 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
documentation
主要語言
JavaScript
星號
9k
分支
181
PR 合併指標
30 天內沒有已合併 PR

描述

put up a demo I was using to check out features, feel free to use any of it if you want
https://github.com/jeremy-coleman/preactive-htm

it has both rollup and webpack builds with babel and without.

I added rollup because i wanted to look over the non-minified bundled code and noticed that the babel plugin wasn't working, I assume because of .mjs extension - might be worth noting in the readme or something. probably a lot of pepople dont know if you use resolve.extensions in your webpack config it resets all the defaults (to exclude mjs) it's also required to manually add to rollup inside the babel plugin.
if u want to see the difference just change the rollup config from: babel({extensions: [".ts", ".tsx", ".js", ".jsx", ".mjs"]}), to: babel(). Gonna explore a bit more with a real app

貢獻指南

開啟貢獻指南

研究方向

檢視連結的 preactive-htm 示範,尤其是其 Rollup 和 Webpack 設定,並比較包含及不包含所列 .mjs 副檔名時 Babel 外掛程式的行為。查看專案 README 中現有的建置指南;只有在明確確立預期的 .mjs 處理方式及任何必要的文件後,該 issue 才算完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
babel, javascript, rollup, webpack
領域
build-system, tooling
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
需要釐清
新手友好度
25/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。