We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 782fbfc commit 42e2a5bCopy full SHA for 42e2a5b
packages/node/src/utils/commonjs.ts
@@ -1,4 +1,4 @@
1
/** Detect CommonJS. */
2
export function isCjs(): boolean {
3
- return typeof require !== 'undefined';
+ return typeof module !== 'undefined';
4
}
0 commit comments