Consider porting .mjs files to .js with "type": "module"

未關閉
#1,850 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
48/100
Issue 類型
重構
描述清晰度
基本清楚
活躍度
冷清
技術堆疊
javascript, node.js
領域
backend

研究方向

先盤點儲存庫中的 .mjs 檔案並檢查 package.json,然後找出依賴副檔名的匯入路徑。當檔案使用 .js、package.json 宣告 "type": "module",且所有受影響的匯入都一致更新後,這項變更便完成。

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

描述

The v6 migration converted all files from CommonJS to ESM using the .mjs extension. The .mjs extension was a transitional mechanism — the intended long-term approach is "type": "module" in package.json, which makes plain .js files ES modules by default.

This is now the ecosystem convention (Node.js docs, major frameworks, etc.). Keeping .mjs signals an incomplete migration.

The change is mechanical — rename all .mjs.js, add "type": "module" to package.json, update any import paths — but worth doing for consistency with modern Node.js conventions.

主要語言
JavaScript
星號
1.8k
分支
308
PR 合併指標
30 天內沒有已合併 PR

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

nodeSolidServer/node-solid-server 的其他 Issue

查看 nodeSolidServer/node-solid-server 的全部 Issue

相似的 Issue

更多 JavaScript Issue

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

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