• Home
  • Raw
  • Download

Lines Matching refs:CommonJS

15     description: Support for detection of CommonJS named exports.
69 [CommonJS][].
80 Node.js treats JavaScript code as CommonJS modules by default.
134 Like in CommonJS, module files within packages can be accessed by appending a
222 default export is also provided which is the value of the CommonJS exports.
255 [Dynamic `import()`][] is supported in both CommonJS and ES modules. In CommonJS
319 ## Interoperability with CommonJS
323 An `import` statement can reference an ES module or a CommonJS module.
325 expressions are supported in CommonJS for loading ES modules.
327 When importing [CommonJS modules](#esm_commonjs_namespaces), the
334 The CommonJS module `require` always treats the files it references as CommonJS.
338 from a CommonJS module.
340 ### CommonJS Namespaces argument
342 CommonJS modules consist of a `module.exports` object which can be of any type.
344 When importing a CommonJS module, it can be reliably imported using the ES
362 The ECMAScript Module Namespace representation of a CommonJS module is always
363 a namespace with a `default` export key pointing to the CommonJS
380 in addition attempts to determine the CommonJS named exports of every imported
381 CommonJS module to provide them as separate ES module exports using a static
384 For example, consider a CommonJS module written:
423 ### Differences between ES modules and CommonJS argument
427 In most cases, the ES module `import` can be used to load CommonJS modules.
434 These CommonJS variables are not available in ES modules.
499 support for named exports. A cache entry is created in the CommonJS
501 CommonJS if the JSON module has already been imported from the
608 CommonJS modules loaded.
694 | `'commonjs'` | Load a Node.js CommonJS module | Not applicable …
820 Similar to how CommonJS wrappers work, the code runs in an implicit function
1032 legacy CommonJS loader. Additional formats such as _"addon"_ can be extended in
1125 > CommonJS resolver to _packageURL_, throwing a _Module Not Found_
1341 the CommonJS loader. One of the behavior differences is automatic resolution
1362 [CommonJS]: modules.md