Skip to content

Commit 695fa25

Browse files
authored
Removes duplicate module warnings when vendoring Python packages (#11284)
1 parent 6966cba commit 695fa25

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.changeset/sad-mirrors-kiss.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"wrangler": patch
3+
---
4+
5+
Removes duplicate module warnings when vendoring Python packages

packages/wrangler/src/deployment-bundle/find-additional-modules.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,10 @@ export async function findAdditionalModules(
171171
{ type: "Data", globs: ["**/*"], fallthrough: true },
172172
];
173173
const vendoredModules = (
174-
await matchFiles(
175-
pythonModulesFiles,
176-
pythonModulesDir,
177-
parseRules(vendoredRules)
178-
)
174+
await matchFiles(pythonModulesFiles, pythonModulesDir, {
175+
rules: vendoredRules,
176+
removedRules: [],
177+
})
179178
)
180179
.filter((m) => {
181180
// Check if the file matches any exclusion pattern

0 commit comments

Comments
 (0)