Current we only support JavaScript modules and not CSS modules with the
ManifestStaticFilesStorage.
The following import paths in JS files files will need to be converted
when collecting static with ManifestStaticFilesStorage:
{{{
import sheet from './styles.css' assert { type: 'css' };
}}}
Additionally WHATWG is firming up HTML modules, so we could proactively
handle this too while we are at it:
{{{
import content from './template.html' assert { type: 'html };
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34563>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* cc: Adam Johnson (added)
* stage: Unreviewed => Someday/Maybe
Comment:
I think it's too early for this as Firefox and Safari still don't support
it, and there doesn't seem to be any ongoing work on supporting it in the
last 2 years.
--
Ticket URL: <https://code.djangoproject.com/ticket/34563#comment:1>
Comment (by Adam Johnson):
I agree, let’s get multiple browser support before modifying Django. You
can implement support in your project or a third party package beforehand.
--
Ticket URL: <https://code.djangoproject.com/ticket/34563#comment:2>