We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8b7855 commit 1391da2Copy full SHA for 1391da2
src/utils/invariant.js
@@ -1,5 +1,5 @@
1
export default function (condition, format, ...args) {
2
- if (process.env.NODE_ENV !== 'production' && format === undefined) {
+ if (import.meta.NODE_ENV !== 'production' && format === undefined) {
3
throw new Error('invariant requires an error message argument');
4
}
5
0 commit comments