並び順

ブックマーク数

期間指定

  • から
  • まで

81 - 119 件 / 119件

新着順 人気順

esmの検索結果81 - 119 件 / 119件

  • GitHub - wessberg/cjstoesm: A tool that can transform CommonJS to ESM

    This is a tool that converts CommonJS modules into tree-shakeable ES Modules. This allows you to not only bundle CommonJS modules for the browser, but also makes it possible for you to bundle them in modern tools such as Rollup. It can also be used as a tool for migrating a CommonJS-based codebase to one based on ES-modules via a simple CLI. cjstoesm can be used from the Command Line, as a JavaScr

      GitHub - wessberg/cjstoesm: A tool that can transform CommonJS to ESM
    • GitHub - lukeed/tsm: TypeScript Module Loader

      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 - lukeed/tsm: TypeScript Module Loader
      • GitHub - mikeal/reg: Native ESM Package Manager

        reg is a package manager for native ES Modules. It's built to enable dependency management for Universal JavaScript (JavaScript that can run in the Browser and in Node.js w/o a compiler). This library is highly experimental and still likely to break without notice. DO NOT USE THIS IN PRODUCTION. Supporting Universal JavaScript is quite difficult as the Browser's module system has a very unique set

          GitHub - mikeal/reg: Native ESM Package Manager
        • Micro-frontend Architecture: Import chunks from another Webpack bundle at runtime

          Micro Frontend Architecture: Import chunks from another Webpack bundle at runtime Importing chunks from other Webpack bundles at runtime, using them as if there were always there — interleaved applications

            Micro-frontend Architecture: Import chunks from another Webpack bundle at runtime
          • GitHub - isaacs/tshy

            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 - isaacs/tshy
            • Import JSON in ES modules

              2 min read This blog post is part of What’s new in Node.js core? March 2022 edition. We’ve had really good ECMAScript (ES) module support in Node.js for a while, but up until now we’ve had to do messy little workarounds to import JSON files. The background on why is a blog post in itself, but the good news is that we can now import JSON modules in Node.js without an experimental flag. This recentl

                Import JSON in ES modules
              • Release v5.0.0-alpha.0 · chaijs/chai

                This release is the first alpha release for Chai 5. The changes from v4.x: This package now uses ESM modules. CommonJS environments are no longer supported. If you wish to use a CommonJS environment, please continue to use Chai 4. Drop support for NodeJS versions less than 16. If you are using NodeJS v4-v15, please continue to use Chai 4. Drop support for Internet Explorer 10 & 11. If you wish to

                  Release v5.0.0-alpha.0 · chaijs/chai
                • ECMAScript proposal: Import assertions

                  The ECMAScript proposal “Import assertions” (by Myles Borins, Sven Sauleau, Dan Clark, and Daniel Ehrenberg) introduces syntax for associating metadata with import statements. In this blog post, we examine what that looks like and why it’s useful. Import assertions  # The motivating use case for import assertions was importing JSON data as a module. That looks as follows (and is further specified

                  • ts-nodeでESModulesのファイルを実行する

                    実行環境 Node.js 14.14.0 yarn 1.22.5 package.json("type": "module"で ESModules を有効化していることに注意。) { "name": "sample", "version": "1.0.0", "license": "MIT", "type": "module", "devDependencies": { "@types/node": "^14.14.25", "ts-node": "^9.1.1", "typescript": "^4.1.3" } }

                      ts-nodeでESModulesのファイルを実行する
                    • 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 - guybedford/es-module-shims: Shims for new ES modules features on top of the basic modules support in browsers

                        Polyfills import maps and other ES Modules features on top of the baseline native ESM support in browsers. With import maps now supported by all major browsers, ES Module Shims entirely bypasses processing for the 74% of users with native import maps support. For the remaining users, the highly performant (see benchmarks) production and CSP-compatible shim kicks in to rewrite module specifiers dri

                          GitHub - guybedford/es-module-shims: Shims for new ES modules features on top of the basic modules support in browsers
                        • 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
                          • Dual ESM/CJS emit with tsc · Issue #54593 · microsoft/TypeScript

                            #54546 explored one approach of enabling dual ESM/CJS emit for packages with tsc alone. The idea was that instead of determining the module format of .ts files by looking for package.json files in its ancestor directories, we would look for them starting at the directory where that file’s .js output would be emitted (a subdirectory of outDir). That way, two tsconfig files could point to two differ

                              Dual ESM/CJS emit with tsc · Issue #54593 · microsoft/TypeScript
                            • https://www.typescriptlang.org/docs/handbook/esm-node.html

                              • The ESM move · sindresorhus/meta · Discussion #15

                                At the end of April, Node.js 10 goes out of LTS, which means I can target Node.js 12 in my packages. Node.js 12 has full ESM support! Required reading: https://nodejs.org/api/esm.html I plan to migrate most of my (1K+) packages to ESM within 2021. At the start of April, I will begin with some less popular packages, just to test the waters. I will use "type": "module" in package.json and not .mjs.

                                  The ESM move · sindresorhus/meta · Discussion #15
                                • Meta: Native support for ES Modules · Issue #9430 · jestjs/jest

                                  EDIT: quick guide for getting started: https://jestjs.io/docs/ecmascript-modules ESM support will be unflagged in a future release of Node 12 (maybe not before April nodejs/node#29866 (comment)) and it is already unflagged in Node 13.2, so I think it's time to evaluate how we can add native support in Jest. I'll try to list which features Jest currently provides that are impacted by ESM support, a

                                    Meta: Native support for ES Modules · Issue #9430 · jestjs/jest
                                  • Custom ESM loaders: Who, what, when, where, why, how

                                    Custom ESM loaders: Who, what, when, where, why, how Most people probably won't write their own custom ESM loaders, but using them could drastically simply your workflow. Custom loaders are a powerful mechanism for controlling an application, providing extensive control over loading modules—be that data, files, what-have-you. This article lays out real-world use-cases. End users will likely consum

                                      Custom ESM loaders: Who, what, when, where, why, how
                                    • GitHub - mgechev/is-esm: 🌳 CLI tool which checks if a package is distributed in ECMAScript module format. Helps you reason if the package is tree-shakable.

                                      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 - mgechev/is-esm: 🌳 CLI tool which checks if a package is distributed in ECMAScript module format. Helps you reason if the package is tree-shakable.
                                      • GitHub - open-draft/logger: Environment-agnostic, ESM-friendly logger for simple needs.

                                        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 - open-draft/logger: Environment-agnostic, ESM-friendly logger for simple needs.
                                        • GitHub - azu/tsconfig-to-dual-package: Node.js dual package tool that add package.json to tsconfig's `outDir`

                                          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 - azu/tsconfig-to-dual-package: Node.js dual package tool that add package.json to tsconfig's `outDir`
                                          • Alternatives to __dirname in Node.js with ES modules - LogRocket Blog

                                            Sam Thorogood Sam is a former Googler, now CTO of the Australian energy startup Gridcognition, with an interest in all things web. So, you’ve listened to all the advice and sat down to migrate your code or learn a new standard, but you have questions. ES modules (also known as ESM) are here, but using them is not quite as simple as migrating all your require() expressions into import statements. E

                                              Alternatives to __dirname in Node.js with ES modules - LogRocket Blog
                                            • webpack 5.0.0-beta.30 Module not found: Error: Can't resolve '../../core-js/object/define-property' · Issue #11467 · webpack/webpack

                                              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

                                                webpack 5.0.0-beta.30 Module not found: Error: Can't resolve '../../core-js/object/define-property' · Issue #11467 · webpack/webpack
                                              • Release v6.0.0 · sindresorhus/execa

                                                Breaking Require Node.js 12.20 (#478) 7707880 This package is now pure ESM. Please read this. Moved from a default export to named exports. require('execa') → import {execa} from 'execa' require('execa').sync → import {execaSync} from 'execa' require('execa').command → import {execaCommand} from 'execa' require('execa').commandSync → import {execaCommandSync} from 'execa' require('execa').node → i

                                                  Release v6.0.0 · sindresorhus/execa
                                                • Design Meeting Notes, 9/22/2021 · Issue #46012 · microsoft/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

                                                    Design Meeting Notes, 9/22/2021 · Issue #46012 · microsoft/TypeScript
                                                  • GitHub - guybedford/es-module-lexer: Low-overhead lexer dedicated to ES module parsing for fast analysis

                                                    import { init, parse } from 'es-module-lexer'; (async () => { await init; const source = ` import { name } from 'mod\\u1011'; import json from './json.json' assert { type: 'json' } export var p = 5; export function q () { }; export { x as 'external name' } from 'external'; // Comments provided to demonstrate edge cases import /*comment!*/ ( 'asdf', { assert: { type: 'json' }}); import /*comment!*/

                                                      GitHub - guybedford/es-module-lexer: Low-overhead lexer dedicated to ES module parsing for fast analysis
                                                    • GitHub - arethetypeswrong/arethetypeswrong.github.io: Tool for analyzing TypeScript types of npm packages

                                                      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 - arethetypeswrong/arethetypeswrong.github.io: Tool for analyzing TypeScript types of npm packages
                                                      • GitHub - tszip/tszip: TypeScript to ES module compiler.

                                                        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 - tszip/tszip: TypeScript to ES module compiler.
                                                        • Super Simple Start to ESModules in Node.js

                                                          Super Simple Start to ESModules in Node.jsApril 8th, 2021 — 3 min read On April 30th 2021, Node v10 will officially reach it's "end of life" (learn more on the Node Releases page). This is exciting because it means that every supported version of the Node.js JavaScript runtime will support Node's official EcmaScript Modules! There are mixed feelings on this change (some would have preferred we sti

                                                            Super Simple Start to ESModules in Node.js
                                                          • Module documentation

                                                            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

                                                              Module documentation
                                                            • Release v30.0.0-alpha.1 · jestjs/jest

                                                              Features [jest-config] [BREAKING] Add mts and cts to default moduleFileExtensions config (#14369) [jest-config] [BREAKING] Update testMatch and testRegex default option for supporting mjs, cjs, mts, and cts (#14584) [@jest/core] [BREAKING] Group together open handles with the same stack trace (#13417, & #14543) [@jest/core, @jest/test-sequencer] [BREAKING] Exposes globalConfig & contexts to TestSe

                                                                Release v30.0.0-alpha.1 · jestjs/jest
                                                              • Node v21.2.0 (Current) | Node.js

                                                                2023-11-14, Version 21.2.0 (Current), @targos Notable Changes [e25c65ee2f] - doc: add MrJithil to collaborators (Jithil P Ponnan) #50666 [f2366573f9] - doc: add Ethan-Arrowood as a collaborator (Ethan Arrowood) #50393 [eac9cc5fcb] - (SEMVER-MINOR) esm: add import.meta.dirname and import.meta.filename (James Sumners) #48740 [7e151114b1] - fs: add stacktrace to fs/promises (翠 / green) #49849 [6dbb28

                                                                  Node v21.2.0 (Current) | Node.js
                                                                • GitHub - unjs/jiti: Runtime Typescript and ESM support for Node.js

                                                                  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 - unjs/jiti: Runtime Typescript and ESM support for Node.js
                                                                  • Node.jsライブラリ/ツールをESMに移行する[Node.js 12+]

                                                                    パッケージの移行 パッケージをESMなパッケージとして明示する方法は2つ .mjs の拡張子を使う package.json の type フィールドに module の値を設定する 基本的にパッケージ単位で移行すると思うので、後者の package.json の "type": "module"を設定する。 この設定をすると、パッケージ内のJavaScriptがモジュールのコンテキストで実行されるようになる。 モジュールでは常にstrict modeとなり、Node.jsのESMではrequire、exports、__dirname、__filename などが利用できなくなる。 代わりに、ES2015+のimportとexport文がモジュール構文として利用できるようになる。 JavaScript モジュール - JavaScript | MDN Differences between

                                                                      Node.jsライブラリ/ツールをESMに移行する[Node.js 12+]
                                                                    • esm: add import.meta.dirname and import.meta.filename by jsumners · Pull Request #48740 · nodejs/node

                                                                      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

                                                                        esm: add import.meta.dirname and import.meta.filename by jsumners · Pull Request #48740 · nodejs/node
                                                                      • Release v10.7.0 · TypeStrong/ts-node

                                                                        Questions about this release? Ask in the official discussion thread: #1680 Added Adds --esm flag, option, and ts-node-esm binary (#1258, #1655) Enables full esm support; no need for --loader nor NODE_OPTIONS Use shebang #!/usr/bin/env ts-node-esm, run ts-node --esm, or add to your tsconfig.json: "ts-node": {"esm": true} Changed Unflag ESM json modules on node >=17.5.0 (#1661, #1665) @Jamesernator

                                                                          Release v10.7.0 · TypeStrong/ts-node
                                                                        • GitHub - AlexSergey/eslint-plugin-file-extension-in-import-ts

                                                                          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 - AlexSergey/eslint-plugin-file-extension-in-import-ts
                                                                          • `--moduleResolution bundler` (formerly known as `hybrid`) by andrewbranch · Pull Request #51669 · microsoft/TypeScript

                                                                            This PR introduces a new moduleResolution setting value called hybrid bundler (see #51714), designed primarily for bundlers and runtimes that include a range of Node-like resolution features and ESM syntax, but do not enforce the strict resolution rules that accompany ES modules in Node or in the browser. Special consideration has also been given for bundlers and runtimes that understand TypeScrip

                                                                              `--moduleResolution bundler` (formerly known as `hybrid`) by andrewbranch · Pull Request #51669 · microsoft/TypeScript
                                                                            • How to import JSON files in ES modules (Node.js)

                                                                              ES modules are still reasonably new in Node.js land (they're stable since Node 14). Modules come with a built-in module system, and features such as top-level await. I read an informative post on ES modules by Pawel Grzybek and learned that you can't import JSON files in ES modules today. /* Experimental JSON import in Node.js $ node index.mjs */ // An import assertion in a static import import in

                                                                                How to import JSON files in ES modules (Node.js)
                                                                              • ESLint v8.57.0 released - ESLint - Pluggable JavaScript Linter

                                                                                Highlights This release backports from v9.x to v8.x two new features and several bug fixes related to the flat config system to help plugins, integrations and users migrate to flat config ahead of the final v9.0.0 release. Support for eslint.config.mjs and eslint.config.cjs This release introduces support for eslint.config.mjs and eslint.config.cjs configuration files to v8.x in addition to eslint

                                                                                  ESLint v8.57.0 released - ESLint - Pluggable JavaScript Linter

                                                                                新着記事