summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorGravatar Erika <3019731+Princesseuh@users.noreply.github.com> 2023-07-27 18:24:39 +0200
committerGravatar Emanuele Stoppa <my.burning@gmail.com> 2023-08-08 11:01:45 +0100
commit148e61d2492456811f8a3c8daaab1c3429a2ffdc (patch)
tree9cf41624687e5c4f44b41c16895f10c2644caf61 /scripts
parent7d2f311d428e3d1c8c13b9bf2a708d6435713fc2 (diff)
downloadastro-148e61d2492456811f8a3c8daaab1c3429a2ffdc.tar.gz
astro-148e61d2492456811f8a3c8daaab1c3429a2ffdc.tar.zst
astro-148e61d2492456811f8a3c8daaab1c3429a2ffdc.zip
feat: remove webapi in favor of a smaller polyfill (#7840)
* feat: remove webapi in favor of a smaller polyfill * test: remove old test * test: 🤦‍♀️ * chore: changeset
Diffstat (limited to 'scripts')
-rw-r--r--scripts/package.json1
-rw-r--r--scripts/smoke/cleanup.js5
-rw-r--r--scripts/smoke/index.js5
3 files changed, 2 insertions, 9 deletions
diff --git a/scripts/package.json b/scripts/package.json
index 8a962b5c7..e6b97f60f 100644
--- a/scripts/package.json
+++ b/scripts/package.json
@@ -8,7 +8,6 @@
"astro-scripts": "./index.js"
},
"dependencies": {
- "@astrojs/webapi": "workspace:*",
"arg": "^5.0.2",
"esbuild": "^0.18.16",
"globby": "^12.2.0",
diff --git a/scripts/smoke/cleanup.js b/scripts/smoke/cleanup.js
index 0d7db79f3..3b03951f9 100644
--- a/scripts/smoke/cleanup.js
+++ b/scripts/smoke/cleanup.js
@@ -3,11 +3,8 @@
// @ts-check
import { execa } from 'execa';
-import { polyfill } from '@astrojs/webapi';
-import { fileURLToPath } from 'node:url';
import { promises as fs } from 'node:fs';
-
-polyfill(globalThis, { exclude: 'window document' });
+import { fileURLToPath } from 'node:url';
/* Configuration
/* ========================================================================== */
diff --git a/scripts/smoke/index.js b/scripts/smoke/index.js
index 9bdaff820..7ab78e286 100644
--- a/scripts/smoke/index.js
+++ b/scripts/smoke/index.js
@@ -3,11 +3,8 @@
// @ts-check
import { execa } from 'execa';
-import { polyfill } from '@astrojs/webapi';
-import { fileURLToPath } from 'node:url';
import { promises as fs } from 'node:fs';
-
-polyfill(globalThis, { exclude: 'window document' });
+import { fileURLToPath } from 'node:url';
/** URL directory containing the entire project. */
const rootDir = new URL('../../', import.meta.url);