summaryrefslogtreecommitdiff
path: root/packages/webapi/run/build.js
diff options
context:
space:
mode:
authorGravatar Ben Holmes <hey@bholmes.dev> 2022-05-20 17:26:41 -0400
committerGravatar GitHub <noreply@github.com> 2022-05-20 17:26:41 -0400
commit4de53eccef346bed843b491b7ab93987d7d85655 (patch)
tree1ec5bff18d74ed5859a0b300cf90b9572c9fb9dd /packages/webapi/run/build.js
parentd296eb63ebc08d49184cf98d57cbe6c85d41b474 (diff)
downloadastro-4de53eccef346bed843b491b7ab93987d7d85655.tar.gz
astro-4de53eccef346bed843b491b7ab93987d7d85655.tar.zst
astro-4de53eccef346bed843b491b7ab93987d7d85655.zip
Fix: support `FormData` object on fetch body (#3417)
* refactor: make node-fetch external in rollup build * deps: make node-fetch standard dep * refactor: switch to node-fetch pkg ref in fetch.ts * chore: changeset * chore: bump webapi to minor change
Diffstat (limited to 'packages/webapi/run/build.js')
-rw-r--r--packages/webapi/run/build.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/webapi/run/build.js b/packages/webapi/run/build.js
index 3bde958f0..754e7950a 100644
--- a/packages/webapi/run/build.js
+++ b/packages/webapi/run/build.js
@@ -178,6 +178,7 @@ async function build() {
inputOptions: {
input: 'src/polyfill.ts',
plugins: plugins,
+ external: ['node-fetch'],
onwarn(warning, warn) {
if (warning.code !== 'UNRESOLVED_IMPORT') warn(warning)
},