並び順

ブックマーク数

期間指定

  • から
  • まで

1 - 18 件 / 18件

新着順 人気順

CommonJSの検索結果1 - 18 件 / 18件

  • TypeScriptの設定の良し悪し

    You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

      TypeScriptの設定の良し悪し
    • Node.js + TypeScriptのモジュールを整理してみる


      link Node.js + TypeScriptCommonJSECMAScript Modules Node.jsCommonJSECMAScript ModulesESMTypeScript   https://github.com/koh110/module_test Node.jslink Node.jsCommonJSESM 
        Node.js + TypeScriptのモジュールを整理してみる
      • Native ESM 時代のフロントエンドビルドツールの動向


        No Bundle : vite / snowpack  Native ESM  localhost  import  webpack  CPU  No bundle  vite  snowpack  https://github.com/vitejs/vite https://www.snowpack.dev/ vite 使 Vue
          Native ESM 時代のフロントエンドビルドツールの動向
        • Node.js Dual Packages (CommonJS/ES Modules) に対応した npm パッケージの開発 - Cybozu Inside Out | サイボウズエンジニアのブログ

          こんにちは。フロントエンドエキスパートの平野(@shisama_)です。 フロントエンドエキスパートチームでは業務時間の 30 % の時間で技術探究を行っています。 今回は探究した技術の中から Node.js の ES Modules(以下 ESM)についてと Dual Package (CommonJS/ES Modules) に対応した npm パッケージの開発について紹介します。 ES Modules の特徴 ESM はブラウザ互換 ESM は Strict モード ESM は非同期 ESM は静的解析可能 Node.js の ESM 対応について Dual Package(CJS/ESM)に対応した npm パッケージの開発 Conditional Exports によるファイルの指定 .mjs と .cjs require など CJS 特有の機能を使う ESMから CJS ファ

            Node.js Dual Packages (CommonJS/ES Modules) に対応した npm パッケージの開発 - Cybozu Inside Out | サイボウズエンジニアのブログ
          • CommonJSからES Modulesへの移行する方法。トップダウンかボトムアップか


            Secretlint v7CommonJS ES Modules Secretlint v7.0.0Pure ESM CommonJS(CJS)ES Modules(ESM) CJSESM調 CJSESM   ESM Secretlintmonorepo40 
              CommonJSからES Modulesへの移行する方法。トップダウンかボトムアップか
            • CommonJS is not going away | Bun Blog

              We're hiring C/C++ and Zig engineers to build the future of JavaScript! Join our team → Some may be surprised to see the recent release notes for Bun mention CommonJS support. After all, CommonJS is a legacy module system, and the future of JavaScript is ES Modules (ESM), right? As a "forward-thinking" "next-gen" runtime, why would Bun put so much effort into improving CommonJS support? The latest

              • 複数のモジュール形式(CommonJS, ES Modules, UMD)をサポートしたnpmパッケージの作り方 in TypeScript - dackdive's blog


                 npm  Node.js CommonJS  (module.exports / require() ) webpackRollup CommonJS  ES Modules  (export / import ) 使<script> UMD   TypeScript 
                  複数のモジュール形式(CommonJS, ES Modules, UMD)をサポートしたnpmパッケージの作り方 in TypeScript - dackdive's blog
                • Node.js における ES Modules を理解する - 30歳からのプログラミング


                   Node.js  ES Modules 使 CommonJS  ES Modules  Node.js  Node.js v14.7.0 Node.js   CJS  ESM  Node.js 使ES ModulesESM CommonJSCJSCJS  Node.js Node.js 
                    Node.js における ES Modules を理解する - 30歳からのプログラミング
                  • GitHub - vercel/nft: Node.js dependency tracing utility

                    You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                      GitHub - vercel/nft: Node.js dependency tracing utility
                    • CommonJSとES Modulesについてまとめる

                      モチベーション 普段フロントエンドを領分にしているのになかなかこのあたりの基礎が足りていないと感じることが多いので、なんとかしたい。 ES Modules方式でしか対応されていないライブラリを使おうとしてコケたので色々調べたのも含め、まとめていく。 ちなみにその辺りについてはこの神記事見ると良い。 個人的に気になっているモジュールシステムについて掘り下げていく。 CommonJS CommonJSとは、サーバーサイドなどのウェブブラウザ環境外におけるJavaScriptの各種仕様を定めることを目標としたプロジェクトである。 from Wikipedia 例えばNode.jsで使われている。 Node.jsはデフォルトで全てのモジュールをCommonJSで扱うが、Node.jsは最近のバージョンでES Modulesに対応するなどしていて、潮流はES Modulesに流れつつある。 後述する

                        CommonJSとES Modulesについてまとめる
                      • JavaScriptが辿った変遷


                         CommonJSES6Node.jsWebpackBrowserify...etc JS ... () : JavaScript JavaScript JavaScript1995NetscapeWebNetscape Navigator WindowsMicrosoftJavaScript  JScriptInternet
                          JavaScriptが辿った変遷
                        • 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

                          • Ship ESM & CJS in one Package

                            [[toc]] ESM & CJS ESM - ECMAScript modules CJS - CommonJS In the past decade, due to the lack of a standard module system of JavaScript, CommonJS (a.k.a the require('xxx') and module.exports syntax) has been the way how Node.js and NPM packages work. Until 2015, when ECMAScript modules finally show up as the standard solution, the community start migrating to native ESM gradually. // CJS const cir

                              Ship ESM & CJS in one Package
                            • Node.js の exports と module.exports

                              Node.js の exports と module.exports Node.js を使ったモジュールのエクスポートとインポート、require、exports、module.exports についての覚書です。以下は Node.js がインストールされていることを前提にしています。 Node.js では CommonJS (CJS) フォーマットが使われ、モジュールとその依存ファイルの定義には require と exports や module.exports を使います。 参考サイト:Understanding module.exports and exports in Node.js また、 CommonJS モジュールとは、Node.js 環境での JavaScript のモジュール化の仕組みです。 参考サイト:JavaScript Primer/CommonJSモジュール r

                              • Next.js with ESM

                                $ npx create-next-app ✔ What is your project named? … esm ✔ Would you like to use TypeScript with this project? … No / Yes ✔ Would you like to use ESLint with this project? … No / Yes cat package.json { "name": "esm", "version": "0.1.0", "private": true, "scripts": { "dev": "next dev", "build": "next build", "start": "next start", "lint": "next lint" }, "dependencies": { "@types/node": "18.11.11",

                                  Next.js with ESM
                                • Node Modules at War: Why CommonJS and ES Modules Can’t Get Along

                                  Dan Fabulich is a Principal Engineer at Redfin. (We’re hiring!) In Node 14, there are now two kinds of scripts: there are old-style CommonJS (CJS) scripts and new-style ESM scripts (aka MJS). CJS scripts use require() and module.exports; ESM scripts use import and export. ESM and CJS are completely different animals. Superficially, ESM looks very similar to CJS, but their implementations couldn’t

                                    Node Modules at War: Why CommonJS and ES Modules Can’t Get Along
                                  • GitHub - azu/eslint-cjs-to-esm: ESLint wrapper for migration from CJS to ESM.

                                    A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

                                      GitHub - azu/eslint-cjs-to-esm: ESLint wrapper for migration from CJS to ESM.
                                    • GitHub - addaleax/gen-esm-wrapper: Generate ESM wrapper files for CommonJS modules

                                      You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                        GitHub - addaleax/gen-esm-wrapper: Generate ESM wrapper files for CommonJS modules
                                      1