Skip to content

Commit 42e2a5b

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lines changed: 1 addition & 1 deletion
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)