diff --git a/build.js b/build.js index 0bb8392..2d9cedc 100644 --- a/build.js +++ b/build.js @@ -1,5 +1,5 @@ import fs from 'node:fs/promises' -import fetch from 'node-fetch' +import {fetch} from 'undici' import {fromHtml} from 'hast-util-from-html' import {selectAll} from 'hast-util-select' import {toString} from 'hast-util-to-string' diff --git a/package.json b/package.json index 2c8faa6..7f68c2c 100644 --- a/package.json +++ b/package.json @@ -37,12 +37,12 @@ "hast-util-from-html": "^1.0.0", "hast-util-select": "^5.0.0", "hast-util-to-string": "^2.0.0", - "node-fetch": "^3.0.0", "prettier": "^2.0.0", "remark-cli": "^11.0.0", "remark-preset-wooorm": "^9.0.0", "type-coverage": "^2.0.0", "typescript": "^5.0.0", + "undici": "^5.0.0", "xo": "^0.54.0" }, "scripts": {