MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / isCjs

Function isCjs

packages/node-core/src/utils/detection.ts:5–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3
4/** Detect CommonJS. */
5export function isCjs(): boolean {
6 /*! rollup-include-cjs-only */
7 return true;
8 /*! rollup-include-cjs-only-end */
9
10 /*! rollup-include-esm-only */
11 return false;
12 /*! rollup-include-esm-only-end */
13}
14
15let hasWarnedAboutNodeVersion: boolean | undefined;
16

Callers 8

getCjsOnlyIntegrationsFunction · 0.90
initFunction · 0.90
ensureIsWrappedFunction · 0.90
_initFunction · 0.90
_initFunction · 0.90
collectModulesFunction · 0.90
supportsEsmLoaderHooksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected