#34497: ManifestStaticFilesStorage skips import and export of javascript modules
with absolute paths
-------------------------------------+-------------------------------------
     Reporter:  Hielke Walinga       |                    Owner:  Hielke
                                     |  Walinga
         Type:  Bug                  |                   Status:  assigned
    Component:  contrib.staticfiles  |                  Version:  4.2
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
  ManifestStaticFilesStorage ES      |
  modules                            |
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  1                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by blighj):

 * cc: blighj (added)

Comment:

 I think this is working as intended for the current way
 `ManifestStaticFilesStorage` works.
 If you use an absolute url that is outside /static like the example given
 {{{
 import function from "/appname/file.js"
 }}}

 I think it is correct that this is not `ManifestStaticFilesStorage`'s
 responsibility. It's not part of the django project's static file, if it
 was it would be in a static folder and we'd expect it to be served with
 /static.

 importmaps blur this line, but they aren't widly used yet, and it's not
 clear to me how the code should account for them at this point.

 Based on that understanding I'd suggest to close this ticket.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/34497#comment:5>
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/0107019783e408ae-a1cb8c11-b561-458d-9df1-07eab49e5afc-000000%40eu-central-1.amazonses.com.

Reply via email to