Search code examples
Create declaration file for third party library as CJS...


javascripttypescripttypescommonjs.d.ts

Read More
How to import JavaScript files in NodeJS using file paths from project root? (instead of relative fi...


javascriptnode.jswebstormrequirecommonjs

Read More
ssh2: Module parse failed: Unexpected character '�'...


javascriptnode.jswebpackcommonjs

Read More
Exposed and private/local members in CommonJS modules...


javascriptnode.jsnode-modulescommonjs

Read More
How to make default export compatible with CommonJS...


typescriptwrappercommonjs

Read More
How is LOAD_PACKAGE_EXPORTS in the Node.js CommonJS spec supposed to work?...


node.jscommonjs

Read More
How can I rewrite a commonJS statement into an ECMAScript import when it uses consecutive requires o...


javascriptcommonjs

Read More
Run CommonJS code in ESM Module using runInThisContext...


javascriptnode.jsecmascript-6commonjs

Read More
As CommonJS dies out, what should go in a library’s package.json "main" field?...


javascriptnode.jsnpmpackage.jsoncommonjs

Read More
Module for Pretty Printing HTML?...


node.jsnpmcommonjsgruntjs

Read More
Using ES Module packages in Azure Typescript Function...


typescriptazureazure-functionscommonjsesmodules

Read More
Is there any performance difference in ES modules vs Common JS modules in NodeJS servers?...


node.jsnode-moduleses6-modulescommonjs

Read More
Precedence of setImmediate() and setTimeout() callbacks in CommonJS vs ESM...


javascriptnode.jses6-modulescommonjsevent-loop

Read More
Node require constant undefined inside function...


javascriptnode.jscommonjs

Read More
Calling typescript function from HTML using a module system...


javascripthtmltypescriptsystemjscommonjs

Read More
What is the difference between `main` and `module` vs `exports` in package.json?...


javascriptnode.jsimportrequirecommonjs

Read More
Import file based on relative path in JavaScript...


javascriptrequirejscommonjs

Read More
Why does typescript allow me to import dependencies it can't use at runtime?...


javascriptnode.jstypescriptcommonjses6-modules

Read More
How do I disable ES Module Error's in VSCode?...


javascripttypescriptvisual-studio-codees6-modulescommonjs

Read More
RequireJS: How to define modules that contain a single "class"?...


javascriptcommonjsrequirejs

Read More
module.exports vs exports in Node.js...


javascriptnode.jscommonjs

Read More
Why does Node evaluate all exports when it is importing from an ES module?...


javascriptnode.jses6-modulescommonjs

Read More
Vitest loads cjs export of dependency instead of esm...


javascriptvitees6-modulescommonjsvitest

Read More
How to check whether a script is running under Node.js?...


javascriptnode.jscommonjs

Read More
Why does require() return "an unfinished copy" of a module exports instead of a reference ...


javascriptnode.jscommonjs

Read More
How to import a Javascript file that is ESM from a CommonJS module? Got. Error: Not supported...


javascriptnode.jses6-modulescommonjsnode.js-got

Read More
Why import can be used in this commonjs module?...


javascriptimportrequirecommonjsesmodules

Read More
Main project imports .esm.mjs dependencies, component library imports cjs.js dependencies...


reactjsreact-contextes6-modulescommonjs

Read More
How to import from a file with an .mts extension in a CJS-first project?...


javascriptnode.jstypescriptes6-modulescommonjs

Read More
Can require() statement in commonjs be dynamic?...


javascriptnode.jsnode-modulescommonjs

Read More
BackNext