diff --git a/packages/playwright-ct-core/src/vitePlugin.ts b/packages/playwright-ct-core/src/vitePlugin.ts index 484d1b4a3d..e4a0a43266 100644 --- a/packages/playwright-ct-core/src/vitePlugin.ts +++ b/packages/playwright-ct-core/src/vitePlugin.ts @@ -171,18 +171,6 @@ export async function buildBundle(config: FullConfig, configDir: string): Promis buildInfo.deps = Object.fromEntries(depsCollector.entries()); } - { - // TODO: find a way of merging this with below - for (const [importingFile, components] of componentsByImportingFile) { - const deps = new Set(); - for (const component of components) { - for (const d of buildInfo.deps[component]) - deps.add(d); - } - setExternalDependencies(importingFile, [...deps]); - } - } - { // Update dependencies based on the vite build. for (const [importingFile, components] of componentsByImportingFile) {