タグ

関連タグで絞り込む (0)

  • 関連タグはありません

タグの絞り込みを解除

ECMAScriptとarticleとnodejsに関するefclのブックマーク (2)

  • require(esm) in Node.js

    Recently I landed experimental support for require()-ing synchronous ES modules in Node.js, a feature that has been long overdue. In the pull request, I commented with my understanding about why it did not happen sooner before this pull request in 2024. This post expands on that comment a bit more. The opinions in this post are my own and reflect my perception of the ESM development in Node.js as

    efcl
    efcl 2024/03/19
    Node.jsに実装された`--experimental-require-module`で、CommonJSからESMを`require`できる仕組みについて。 Top-Level awaitの非同期をスコープ外にすることで実装が進んだ
  • Deep Dive: Node.jsのESMデフォルト化への道

    Node.js 21では --experimental-default-type=module フラグで、JavaScriptファイルのデフォルトの解釈をCJS(CommonJS)からESM(ECMAScript Modules)に変更できるようになっています。 Node.js 21 is now available! | Node.js これは、Node.jsにおいてJavaScriptファイル(.js)のデフォルトをESMに変更するための第一歩です。 今回のDeep Diveでは、Node.jsのESMデフォルト化に向けたIssueや実装について紹介します。 Node.jsのESMデフォルト化 Discussion: New “ESM by default” mode · Issue #49432 · nodejs/node このIssueは、Node.jsにおけるambiguous

    Deep Dive: Node.jsのESMデフォルト化への道
    efcl
    efcl 2023/10/19
    Node.js 21で`--experimental-default-type=module`が実装されるなど、`.js`のあいまいなファイルをESMとして扱うための取り組みが始まったとい話
  • 1