developit / developit/microbundle
'use client'
未關閉
- 主要語言
- JavaScript
- 星號
- 8.1k
- 分支
- 358
- PR 合併指標
- 30 天內沒有已合併 PR
描述
Hi, I'm the maintainer of [react-lenis](https://github.com/studio-freight/react-lenis) package and some people complain about using the library in next.js app context usage.
In fact it requires 'use client' directive on top of the file but I noticed that it's ignored by microbundle "Module level directives cause errors when bundled, 'use client' was ignored."
Do you have a solution for that ?
https://github.com/studio-freight/lenis/issues/170
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
先在 Next.js 應用程式中重現回報的套件使用方式,並檢查 Microbundle 在打包期間如何處理模組層級的 'use client' 指示詞。issue 中沒有指定檔案或測試;完成條件是保留該指示詞,或以其他方式支援該指示詞,且不再出現回報的警告。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- javascript, next.js
- 領域
- build-system
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 25/100