mirror of
https://github.com/umap-project/umap.git
synced 2025-04-29 11:52:38 +02:00
fix: correct way to replace imports in collecstatic
This commit is contained in:
parent
472f5578b8
commit
163d24c7d0
1 changed files with 3 additions and 3 deletions
|
@ -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")""",
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue