Skip to content

Commit c466d32

Browse files
authored
Exclude browser from node version check (#3268)
1 parent 15cfeb4 commit c466d32

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
if (typeof process !== 'undefined' && parseInt(process.versions.node.split('.')[0]) < 18) {
1+
if (typeof process !== 'undefined' && !process.browser && process.platform !== 'browser' && parseInt(process.versions.node.split('.')[0]) < 18) {
22
console.error('Your node version is currently', process.versions.node)
33
console.error('Please update it to a version >= 18.x.x from https://nodejs.org/')
44
process.exit(1)

0 commit comments

Comments
 (0)