Skip to content

Commit 1aeeeaf

Browse files
committed
Properly resolve all wildcard exports from dependencies
1 parent 859bb18 commit 1aeeeaf

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

django_esm/utils.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,8 @@ def parse_package_json(path: Path = None):
100100
for module_name, module in exports.items():
101101
module = next(find_default_key(module))
102102

103-
yield str(Path(name) / module_name), staticfiles_storage.url(
104-
str(
105-
(path / module)
106-
.resolve()
107-
.relative_to(settings.BASE_DIR / "node_modules")
108-
)
103+
yield from get_static_from_abs_path(
104+
str(Path(name) / module_name), path / module
109105
)
110106

111107
for dep_name, dep_version in dependencies.items():

0 commit comments

Comments
 (0)