Reference: nuxt/framework#1949
Libraries like date-fns (as of 2.25.0) using this contention leading to native ESM incompatibility (https://unpkg.com/browse/date-fns@2.25.0/esm/format/)
Using a regex like /\/esm\/.*\.js$/ we can exclude it but we should probably still take type: module check into account to avoid false-positive detections.
Reference: nuxt/framework#1949
Libraries like
date-fns(as of 2.25.0) using this contention leading to native ESM incompatibility (https://unpkg.com/browse/date-fns@2.25.0/esm/format/)Using a regex like
/\/esm\/.*\.js$/we can exclude it but we should probably still taketype: modulecheck into account to avoid false-positive detections.