Buckets:
| /** React that's compiled with `next`. Used by App Router. */ | |
| export const reactVendoredRe = | |
| /[\\/]next[\\/]dist[\\/]compiled[\\/](react|react-dom|react-server-dom-(webpack|turbopack)|scheduler)[\\/]/ | |
| /** React the user installed. Used by Pages Router, or user imports in App Router. */ | |
| export const reactNodeModulesRe = | |
| /node_modules[\\/](react|react-dom|scheduler)[\\/]/ | |
| export const nextInternalsRe = | |
| /(node_modules[\\/]next[\\/]|[\\/].next[\\/]static[\\/]chunks[\\/]webpack\.js$|(edge-runtime-webpack|webpack-runtime)\.js$)/ | |
| export default function isInternal(file: string | null) { | |
| if (!file) return false | |
| // NOTE: native code has a version of the same logic in crates/next-napi-bindings/src/next_api/utils.rs | |
| // keep them in sync. | |
| return ( | |
| nextInternalsRe.test(file) || | |
| reactVendoredRe.test(file) || | |
| reactNodeModulesRe.test(file) | |
| ) | |
| } | |
Xet Storage Details
- Size:
- 872 Bytes
- Xet hash:
- 6df9ecbd0b28b940ce6070a1fb05856f8c7ece3d9f5df8c15db2aa9a8e4c67d1
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.