Bug 1836876 - Correctly ignore third party code during esmification. r=freaktechnik

Differential Revision: https://phabricator.services.mozilla.com/D180233

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Rob Lemley 2023-06-08 15:44:00 +00:00
Родитель 2ca5a0b047
Коммит 670cd4898c
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -77,7 +77,8 @@ def load_exclusion_files():
with open(path, "r") as f:
for line in f:
p = path_sep_to_native(re.sub("\*$", "", line.strip()))
excluded_from_imports_prefix.append(p)
# Drop the "comm/" prefix from ThirdPartyPaths.txt
excluded_from_imports_prefix.append(p[5:])
def is_excluded_from_imports(path):