This repository has been archived on 2026-05-03. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
novarix-networks-homepage/node_modules/next/dist/esm/shared/lib/is-internal.js
T
Kismet Hasanaj 34dc9aec52 .
2026-05-02 20:07:02 +02:00

11 lines
882 B
JavaScript

/** 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;
// 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);
}
//# sourceMappingURL=is-internal.js.map