Skip to content

Commit 42e2a5b

Browse files
committed
ref(cjs) test alternative
1 parent 782fbfc commit 42e2a5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/node/src/utils/commonjs.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
/** Detect CommonJS. */
22
export function isCjs(): boolean {
3-
return typeof require !== 'undefined';
3+
return typeof module !== 'undefined';
44
}

0 commit comments

Comments
 (0)