externalize playwright

This commit is contained in:
Nate Kelley 2025-10-08 13:25:56 -06:00
parent c90fd3c97c
commit bb3a9f48b3
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
1 changed files with 4 additions and 0 deletions

View File

@ -61,6 +61,10 @@ const config = defineConfig(({ command, mode }) => {
if (/\.(test|stories)\.(js|ts|jsx|tsx)$/.test(id)) {
return true;
}
// Exclude playwright-core (Node.js-only package)
if (id.includes('playwright-core')) {
return true;
}
// Don't externalize React and React DOM - let them be bundled
return false;
},