﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
35553	HashedFilesMixin for ES modules does not work with `import*as ...` syntax	Michael	Farhan Ali	"Django's regex does not work with the following:

{{{
import*as l from ""/static/jsapp/jsapp/dtmod.min.js"";import*as h from ""/static/jsapp/jsapp/nummod.min.js"";import*as m from ""/static/leave/jsapp/fetcher.min.js"";import {BaseComponent as g} from ""/static/wcapp/jsapp/wc-base.min.425310100bce.js"";
}}}

As you can see only the 4th import was correctly altered, the first 3 werent even detected, (below is the same as above but placed the imports on seprate lines for readability):

{{{
import*as l from ""/static/jsapp/jsapp/dtmod.min.js"";
import*as h from ""/static/jsapp/jsapp/nummod.min.js"";
import*as m from ""/static/leave/jsapp/fetcher.min.js"";
import {BaseComponent as g} from ""/static/wcapp/jsapp/wc-base.min.425310100bce.js"";
}}}


This regex handles the missing case:
{{{
            (
                r""""""(?P<matched>(?P<import_as>import\s*\*as\s\S+)\s+from\s*[""'](?P<url>[./].*?)[""']\s*;)"""""",
                """"""%(import_as)s from ""%(url)s"";"""""",
            ),
}}}"	Bug	closed	contrib.staticfiles	5.0	Normal	fixed	Manifest  Static Files Storage, javascript module scripts		Ready for checkin	1	0	0	0	0	0
