summaryrefslogtreecommitdiff
path: root/packages/integrations/cloudflare/src
diff options
context:
space:
mode:
authorGravatar Arsh <69170106+lilnasy@users.noreply.github.com> 2023-12-04 09:57:58 +0000
committerGravatar GitHub <noreply@github.com> 2023-12-04 10:57:58 +0100
commit39e288a7f734d0abfe563d2694c523fe8ea8cc18 (patch)
tree36c8e1b6d86445dd7dddd6e6b11bf7fe664c9dc2 /packages/integrations/cloudflare/src
parentc3255e82ff975a907d2106e5de9bb5a19215ad05 (diff)
downloadastro-39e288a7f734d0abfe563d2694c523fe8ea8cc18.tar.gz
astro-39e288a7f734d0abfe563d2694c523fe8ea8cc18.tar.zst
astro-39e288a7f734d0abfe563d2694c523fe8ea8cc18.zip
chore(cloudflare): use astro's vite version for plugin type (#82)
Diffstat (limited to 'packages/integrations/cloudflare/src')
-rw-r--r--packages/integrations/cloudflare/src/utils/wasm-module-loader.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/integrations/cloudflare/src/utils/wasm-module-loader.ts b/packages/integrations/cloudflare/src/utils/wasm-module-loader.ts
index 7d34d48c3..65a0e826d 100644
--- a/packages/integrations/cloudflare/src/utils/wasm-module-loader.ts
+++ b/packages/integrations/cloudflare/src/utils/wasm-module-loader.ts
@@ -1,6 +1,6 @@
import * as fs from 'node:fs';
import * as path from 'node:path';
-import { type Plugin } from 'vite';
+import type { AstroConfig } from 'astro';
/**
* Loads '*.wasm?module' imports as WebAssembly modules, which is the only way to load WASM in cloudflare workers.
@@ -17,7 +17,7 @@ export function wasmModuleLoader({
}: {
disabled: boolean;
assetsDirectory: string;
-}): Plugin {
+}): NonNullable<AstroConfig['vite']['plugins']>[number] {
const postfix = '.wasm?module';
let isDev = false;