Skip to content

module: error for CJS .js load within type: module

Rodrigo Muino Tomonari requested to merge github/fork/guybedford/cjs-type into master

This adds the CJS error that a .js file within type: module package scopes cannot be loaded from CJS.

This was a resolution made at the last Node.js modules meeting (see notes).

The error thrown is the same one thrown for loading .mjs files from CJS.

//cc @nodejs/modules-active-members

Merge request reports

Loading