#36969: collectstatic post-processing with support_js_module_import_aggregation
breaks on certain javascript files
-------------------------------------+------------------------------------
Reporter: blighj | Owner: (none)
Type: Bug | Status: new
Component: contrib.staticfiles | Version: 6.0
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 1 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+------------------------------------
Comment (by kurtmoll):
What Django is trying to do with post_process is equivalent to a linker/JS
packer, ie rewriting references/relocating. So yes, putting that in Django
source code will be rejected as it can only grow. Why not use `esbuild`
instead of doing it with the regexes? See for example:
https://esbuild.github.io/api/#conditions.
--
Ticket URL: <https://code.djangoproject.com/ticket/36969#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/0107019cd1e3c48d-33c7aa56-4e9e-48da-881f-ea30c4acb812-000000%40eu-central-1.amazonses.com.