diff options
author | 2024-06-10 17:33:17 +0200 | |
---|---|---|
committer | 2024-06-10 17:33:17 +0200 | |
commit | 41f1321c088592a429b785f935fd5c6c49c405a0 (patch) | |
tree | d9634e6c378f4ce10eac9c4eb4384d3e94a152fe /packages/integrations/cloudflare/src | |
parent | 5ed68956406afec86b1393d47e7db601330b496e (diff) | |
download | astro-41f1321c088592a429b785f935fd5c6c49c405a0.tar.gz astro-41f1321c088592a429b785f935fd5c6c49c405a0.tar.zst astro-41f1321c088592a429b785f935fd5c6c49c405a0.zip |
feat(netlify): support astro:env (#275)
Co-authored-by: Alexander Niebuhr <alexander@nbhr.io>
Diffstat (limited to 'packages/integrations/cloudflare/src')
-rw-r--r-- | packages/integrations/cloudflare/src/utils/non-server-chunk-detector.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/integrations/cloudflare/src/utils/non-server-chunk-detector.ts b/packages/integrations/cloudflare/src/utils/non-server-chunk-detector.ts index 26061c347..4b14e7087 100644 --- a/packages/integrations/cloudflare/src/utils/non-server-chunk-detector.ts +++ b/packages/integrations/cloudflare/src/utils/non-server-chunk-detector.ts @@ -1,5 +1,5 @@ import type { OutputBundle } from 'rollup'; -import type { Plugin } from 'vite'; +import type { PluginOption } from 'vite'; /** * A Vite bundle analyzer that identifies chunks that are not used for server rendering. @@ -11,7 +11,7 @@ import type { Plugin } from 'vite'; export class NonServerChunkDetector { private nonServerChunks?: string[]; - public getPlugin(): Plugin { + public getPlugin(): PluginOption { return { name: 'non-server-chunk-detector', generateBundle: (_, bundle) => { |