Skip to content

Commit

Permalink
Windows fix for short_path match in SourceFile.should_rollup().
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitri-Sintsov committed Mar 23, 2022
1 parent 668f141 commit 4924841
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions django_deno/sourcefile.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ def has_rollup_hint(self):
return False

def should_rollup(self, short_path):
if '\\' in short_path:
short_path = short_path.replace('\\', '/')
if settings.DENO_ENABLE:
if short_path in settings.DENO_ROLLUP_ENTRY_POINTS:
return True
Expand Down

0 comments on commit 4924841

Please sign in to comment.