Elektrine lite

← Feed

@leaverou@front-end.social

Post #879790

2026-03-18 15:46 UTC

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.

Replies (1)

  • @westbrook@mastodon.social 2026-03-19 10:19

    @leaverou@front-end.social @TC39@fosstodon.org But we want CSS as CSS and HTML as HTML, the way we get JSON as JSON, not at strings or bytes. Won’t we have to “ad hoc” type them down the road anyway making it just delayed further but not continuing to work towards them now?

    Open ##2392984