Skip to content

Commit

Permalink
ref(cjs) test alternative
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasBa committed Oct 2, 2024
1 parent 782fbfc commit a92ae7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/node/src/utils/commonjs.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** Detect CommonJS. */
export function isCjs(): boolean {
return typeof require !== 'undefined';
return typeof module === 'undefined';
}

0 comments on commit a92ae7e

Please sign in to comment.