mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 06:23:00 +08:00
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:
commit
ebe9a6c59e
@ -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'
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user