diff options
Diffstat (limited to 'packages/integrations/prefetch/src/index.ts')
-rw-r--r-- | packages/integrations/prefetch/src/index.ts | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/packages/integrations/prefetch/src/index.ts b/packages/integrations/prefetch/src/index.ts index 15f52272c..a15f88747 100644 --- a/packages/integrations/prefetch/src/index.ts +++ b/packages/integrations/prefetch/src/index.ts @@ -9,9 +9,11 @@ export default function (options: PrefetchOptions = {}): AstroIntegration { // Inject the necessary polyfills on every page (inlined for speed). injectScript( 'page', - `import prefetch from "@astrojs/prefetch/client.js"; prefetch(${JSON.stringify(options)});` + `import prefetch from "@astrojs/prefetch/client.js"; prefetch(${JSON.stringify( + options + )});` ); - } - } + }, + }, }; } |