We do not support importing named exports from a CJS module. This change decorates the error message for missing named exports in the case where the module being imported is expected to be CJS by the ESM loader. Signed-off-by: Myles Borins <myles.borins@gmail.com> PR-URL: https://github.com/nodejs/node/pull/33256 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Michaël Zasso <targos@protonmail.com>
5 lines
83 B
JSON
5 lines
83 B
JSON
{
|
|
"name": "package-cjs-named-error",
|
|
"main": "index.mjs",
|
|
"type": "module"
|
|
}
|