summaryrefslogtreecommitdiff
path: root/packages/integrations/prefetch/src/index.ts
diff options
context:
space:
mode:
authorGravatar Bjorn Lu <bjornlu.dev@gmail.com> 2023-12-01 23:50:15 +0800
committerGravatar GitHub <noreply@github.com> 2023-12-01 10:50:15 -0500
commitd83991ae8b51a304405330b4af8e9cc502f9bc57 (patch)
treed47843d3be1ba225c7f46e0c5372b2da56e37c0e /packages/integrations/prefetch/src/index.ts
parentc47478bbf6b21973419f25234c68efb59466b368 (diff)
downloadastro-d83991ae8b51a304405330b4af8e9cc502f9bc57.tar.gz
astro-d83991ae8b51a304405330b4af8e9cc502f9bc57.tar.zst
astro-d83991ae8b51a304405330b4af8e9cc502f9bc57.zip
Remove @astrojs/prefetch integration (#9241)
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
- )});`
- );
- },
- },
- };
-}