Skip to content

Commit

Permalink
fix: esm compatible env (#388)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-heimbuch committed Feb 12, 2023
1 parent d8b7855 commit 1391da2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/invariant.js
@@ -1,5 +1,5 @@
export default function (condition, format, ...args) {
if (process.env.NODE_ENV !== 'production' && format === undefined) {
if (import.meta.NODE_ENV !== 'production' && format === undefined) {
throw new Error('invariant requires an error message argument');
}

Expand Down

0 comments on commit 1391da2

Please sign in to comment.