We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f05d640 commit 24b90d1Copy full SHA for 24b90d1
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