fix: correct way to replace imports in collecstatic

This commit is contained in:
Yohan Boniface 2024-07-12 19:00:59 +02:00
parent 472f5578b8
commit 163d24c7d0

View file

@ -32,12 +32,12 @@ class UmapManifestStaticFilesStorage(ManifestStaticFilesStorage):
'import"%(url)s"\n', 'import"%(url)s"\n',
), ),
( (
r"""(?P<matched>import\(["'](?P<url>.*?)["']\))\.then""", r"""(?P<matched>import\(["'](?P<url>.*?)["']\)\.then)""",
"""import("%(url)s")""", """import("%(url)s").then""",
), ),
( (
r"""(?P<matched>await import\(["'](?P<url>.*?)["']\))""", r"""(?P<matched>await import\(["'](?P<url>.*?)["']\))""",
"""import("%(url)s")""", """await import("%(url)s")""",
), ),
), ),
) )