﻿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
34100	Support js import statement with ManifestStaticFilesStorage	blighj	nobody	"Browsers now have good support for the import statement of javascript
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import#syntax
Which is in the form
{{{
import defaultExport from ""module-name.js"";
import ""../module-name2.js"";
}}}
Something like the below added to the js patterns of HashedFilesMixin should cover both use cases
{{{
                (
                    r""""""(?P<matched>import(?P<from>[\s\{].*?from)\s*?['""](?P<url>[\w\.\/-]*?)[""']\s*?;)"""""",
                    """"""import%(from)s""%(url)s"";"""""",
                ),
                (
                    r""""""(?P<matched>import\s*?['""](?P<url>[\w\.\/-]*?)[""']\s*?;)"""""",
                    """"""import""%(url)s"";"""""",
                ),
}}}
"	New feature	closed	contrib.staticfiles	dev	Normal	duplicate			Unreviewed	0	0	0	0	0	0
