Merge pull request #30711 from storybookjs/jeppe/include-node-modules-in-stats-json

Vite: Include `node_modules` in stats file
This commit is contained in:
Jeppe Reinhold 2025-03-04 06:45:14 +01:00 committed by GitHub
commit ebe9a6c59e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -52,8 +52,7 @@ function isUserCode(moduleName: string) {
return Boolean(
!moduleName.startsWith('vite/') &&
!moduleName.startsWith('\0') &&
moduleName !== 'react/jsx-runtime' &&
!moduleName.match(/node_modules\//)
moduleName !== 'react/jsx-runtime'
);
}