Skip to content

Commit 4924841

Browse files
Windows fix for short_path match in SourceFile.should_rollup().
1 parent 668f141 commit 4924841

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

django_deno/sourcefile.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ def has_rollup_hint(self):
7575
return False
7676

7777
def should_rollup(self, short_path):
78+
if '\\' in short_path:
79+
short_path = short_path.replace('\\', '/')
7880
if settings.DENO_ENABLE:
7981
if short_path in settings.DENO_ROLLUP_ENTRY_POINTS:
8082
return True

0 commit comments

Comments
 (0)