Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
9
node_modules/next/dist/esm/shared/lib/is-internal.js
generated
vendored
Normal file
9
node_modules/next/dist/esm/shared/lib/is-internal.js
generated
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
/** 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) {
|
||||
if (!file) return false;
|
||||
return nextInternalsRe.test(file) || reactVendoredRe.test(file) || reactNodeModulesRe.test(file);
|
||||
}
|
||||
|
||||
//# sourceMappingURL=is-internal.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue