aboutsummaryrefslogtreecommitdiff
path: root/packages/webapi/run/build.js
diff options
context:
space:
mode:
authorGravatar Erika <3019731+Princesseuh@users.noreply.github.com> 2023-01-10 15:29:06 +0100
committerGravatar GitHub <noreply@github.com> 2023-01-10 15:29:06 +0100
commitc55fbcb8edca1fe118a44f68c9f9436a4719d171 (patch)
tree2bde21dfe19aee8a984a3f5b678b2ee6603876da /packages/webapi/run/build.js
parentcf5dc2adae04c1ab3fcf95bb2426e82733737852 (diff)
downloadastro-c55fbcb8edca1fe118a44f68c9f9436a4719d171.tar.gz
astro-c55fbcb8edca1fe118a44f68c9f9436a4719d171.tar.zst
astro-c55fbcb8edca1fe118a44f68c9f9436a4719d171.zip
Remove more unnecessary polyfills from webapi for Node 16 (#5814)
* feat(webapi): Remove unnecessary polyfills now that we dropped support for Node 14 * feat(webapi): Removed more unnecessary polyfills for Node 16 * chore: changeset
Diffstat (limited to 'packages/webapi/run/build.js')
-rw-r--r--packages/webapi/run/build.js8
1 files changed, 1 insertions, 7 deletions
diff --git a/packages/webapi/run/build.js b/packages/webapi/run/build.js
index 2ec835644..017820746 100644
--- a/packages/webapi/run/build.js
+++ b/packages/webapi/run/build.js
@@ -58,12 +58,6 @@ const plugins = [
inject({
// import { Promise as P } from 'es6-promise'
// P: [ 'es6-promise', 'Promise' ],
-
- AbortController: [
- 'abort-controller/dist/abort-controller.mjs',
- 'AbortController',
- ],
- Blob: ['fetch-blob/from.js', 'Blob'],
DOMException: [pathToDOMException, 'DOMException'],
Document: ['./Document', 'Document'],
Element: ['./Element', 'Element'],
@@ -172,7 +166,7 @@ async function build() {
inputOptions: {
input: 'src/polyfill.ts',
plugins: plugins,
- external: ['undici', 'global-agent'],
+ external: ['undici'],
onwarn(warning, warn) {
if (warning.code !== 'UNRESOLVED_IMPORT') warn(warning)
},