diff options
author | 2023-12-01 23:50:15 +0800 | |
---|---|---|
committer | 2023-12-01 10:50:15 -0500 | |
commit | d83991ae8b51a304405330b4af8e9cc502f9bc57 (patch) | |
tree | d47843d3be1ba225c7f46e0c5372b2da56e37c0e /packages/integrations/prefetch/src/index.ts | |
parent | c47478bbf6b21973419f25234c68efb59466b368 (diff) | |
download | astro-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.ts | 19 |
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 - )});` - ); - }, - }, - }; -} |