#33353: Can't collect static files if don't have vendor's JavaScript source map
files
-------------------------------------+-------------------------------------
Reporter: Michael | Owner: nobody
Type: Bug | Status: new
Component: contrib.staticfiles | Version: 4.0
Severity: Release blocker | Resolution:
Keywords: manifeststatic | Triage Stage:
storage | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Description changed by Michael:
Old description:
> Some django packages include JavaScript files, but not the sourcemaps.
>
> Django version 4 introduces a new features of adjusting the URLs of these
> source map urls. Unfortunately if one does not have these source maps,
> its generates an error and stops. This seems unncessary that one can't
> create a release in production due to an unused third party file.
>
> Altohugh I think it should only print a warning, as dicussed below people
> feel its worthwhile to keep this breaking change. Can we at least make it
> only raise an error if `settings.DEBUG == True`. That way in production
> where the sourcemaps are used less, its okay.
>
> Alternatively/Additionally, could there be a
> `settings.SOURCEMAP_EXCEPTION` etc that allows one to turn off this new
> break change?
New description:
Some django packages include JavaScript files, but not the sourcemaps,
e.g. `django-json-widget` see: https://github.com/jmrivas86/django-json-
widget/issues/63
Django version 4 introduces a new features of adjusting the URLs of these
source map urls. Unfortunately if one does not have these source maps, its
generates an error and stops. This seems unncessary that one can't create
a release in production due to an unused third party file.
Altohugh I think it should only print a warning, as dicussed below people
feel its worthwhile to keep this breaking change. Can we at least make it
only raise an error if `settings.DEBUG == True`. That way in production
where the sourcemaps are used less, its okay.
Alternatively/Additionally, could there be a
`settings.SOURCEMAP_EXCEPTION` etc that allows one to turn off this new
break change?
--
--
Ticket URL: <https://code.djangoproject.com/ticket/33353#comment:9>
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 on the web visit
https://groups.google.com/d/msgid/django-updates/068.0018e1bb6f684c8fe3528d02a709da90%40djangoproject.com.