summaryrefslogtreecommitdiff
path: root/benchmark/packages
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/packages')
-rw-r--r--benchmark/packages/timer/package.json1
-rw-r--r--benchmark/packages/timer/src/server.ts7
-rw-r--r--benchmark/packages/timer/tsconfig.json4
3 files changed, 4 insertions, 8 deletions
diff --git a/benchmark/packages/timer/package.json b/benchmark/packages/timer/package.json
index abcfe1d3e..ddb63a270 100644
--- a/benchmark/packages/timer/package.json
+++ b/benchmark/packages/timer/package.json
@@ -23,7 +23,6 @@
"dev": "astro-scripts dev \"src/**/*.ts\""
},
"dependencies": {
- "@astrojs/webapi": "workspace:*",
"server-destroy": "^1.0.1"
},
"peerDependencies": {
diff --git a/benchmark/packages/timer/src/server.ts b/benchmark/packages/timer/src/server.ts
index 28a406841..d33e65c00 100644
--- a/benchmark/packages/timer/src/server.ts
+++ b/benchmark/packages/timer/src/server.ts
@@ -1,11 +1,8 @@
-import { polyfill } from '@astrojs/webapi';
import type { SSRManifest } from 'astro';
-import { NodeApp } from 'astro/app/node';
+import { NodeApp, applyPolyfills } from 'astro/app/node';
import type { IncomingMessage, ServerResponse } from 'node:http';
-polyfill(globalThis, {
- exclude: 'window document',
-});
+applyPolyfills();
export function createExports(manifest: SSRManifest) {
const app = new NodeApp(manifest);
diff --git a/benchmark/packages/timer/tsconfig.json b/benchmark/packages/timer/tsconfig.json
index 44baf375c..af1b43564 100644
--- a/benchmark/packages/timer/tsconfig.json
+++ b/benchmark/packages/timer/tsconfig.json
@@ -3,8 +3,8 @@
"include": ["src"],
"compilerOptions": {
"allowJs": true,
- "module": "ES2020",
+ "module": "ES2022",
"outDir": "./dist",
- "target": "ES2020"
+ "target": "ES2022"
}
}