Skip to content

Commit 1391da2

Browse files
fix: esm compatible env (#388)
1 parent d8b7855 commit 1391da2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/invariant.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export default function (condition, format, ...args) {
2-
if (process.env.NODE_ENV !== 'production' && format === undefined) {
2+
if (import.meta.NODE_ENV !== 'production' && format === undefined) {
33
throw new Error('invariant requires an error message argument');
44
}
55

0 commit comments

Comments
 (0)