We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f05d640 + 24b90d1 commit 11cccf6Copy full SHA for 11cccf6
src/utils/utf8.ts
@@ -1,6 +1,5 @@
1
const TEXT_ENCODING_AVAILABLE =
2
- typeof process !== "undefined" &&
3
- process.env.TEXT_ENCODING !== "never" &&
+ (typeof process === "undefined" || process.env.TEXT_ENCODING !== "never") &&
4
typeof TextEncoder !== "undefined" &&
5
typeof TextDecoder !== "undefined";
6
0 commit comments