MIRROR: javascript for ๐Ÿœ's, a tiny runtime with big ambitions
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

esm apply to suffix

+1 -1
+1 -1
src/esm/loader.c
··· 733 733 if (esm_is_cjs_extension(resolved_path)) return MODULE_EVAL_FORMAT_CJS; 734 734 if (esm_is_esm_extension(resolved_path)) return MODULE_EVAL_FORMAT_ESM; 735 735 736 - if (esm_has_suffix(resolved_path, ".js") && esm_path_contains_node_modules(resolved_path)) { 736 + if (esm_has_suffix(resolved_path, ".js")) { 737 737 bool pkg_is_module = false; 738 738 bool has_package_json = esm_lookup_package_type_module(resolved_path, &pkg_is_module); 739 739 if (!has_package_json) return MODULE_EVAL_FORMAT_CJS;