summaryrefslogtreecommitdiff
path: root/benchmark/packages/timer/src/server.ts
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/packages/timer/src/server.ts')
-rw-r--r--benchmark/packages/timer/src/server.ts7
1 files changed, 2 insertions, 5 deletions
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);