There are currently two mature @TC39 proposals for the low-level functionality that would make it possible to declare *any* file type as a dependency:
1. Import text (Stage 3 as of last week!): https://github.com/tc39/proposal-import-text
2. Import bytes (Stage 2.7): https://github.com/tc39/proposal-import-bytes
Perhaps we should push for these to get implemented *first* instead of ad hoc types for every possible type of dependency (CSS modules, HTML modules, etc), which doesn’t scale.
