summaryrefslogtreecommitdiff
path: root/packages/integrations/prefetch/src/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/integrations/prefetch/src/index.ts')
-rw-r--r--packages/integrations/prefetch/src/index.ts19
1 files changed, 0 insertions, 19 deletions
diff --git a/packages/integrations/prefetch/src/index.ts b/packages/integrations/prefetch/src/index.ts
deleted file mode 100644
index 74ec5186e..000000000
--- a/packages/integrations/prefetch/src/index.ts
+++ /dev/null
@@ -1,19 +0,0 @@
-import type { AstroIntegration } from 'astro';
-import type { PrefetchOptions } from './client.js';
-
-export default function (options: PrefetchOptions = {}): AstroIntegration {
- return {
- name: '@astrojs/prefetch',
- hooks: {
- 'astro:config:setup': ({ injectScript }) => {
- // Inject the necessary polyfills on every page (inlined for speed).
- injectScript(
- 'page',
- `import prefetch from "@astrojs/prefetch/client.js"; prefetch(${JSON.stringify(
- options
- )});`
- );
- },
- },
- };
-}