Commit 49cd6a7

Anton Golub <antongolub@antongolub.com>
2024-06-12 21:11:51
fix: disable redundant node-fetch-native runtime check (deno) (#843)
1 parent 4c52ec5
Changed files (1)
scripts/build-js.mjs
@@ -126,6 +126,7 @@ plugins.push(
             )
             .replaceAll('require("fs/promises")', 'require("fs").promises')
             .replaceAll('}).prototype', '}).prototype || {}')
+            .replace(/DISABLE_NODE_FETCH_NATIVE_WARN/, ($0) => `${$0} || true`)
             .replace(
               /\/\/ Annotate the CommonJS export names for ESM import in node:/,
               ($0) => `/* c8 ignore next 100 */\n${$0}`