summaryrefslogtreecommitdiff
path: root/packages/integrations/cloudflare/src
diff options
context:
space:
mode:
authorGravatar Alexander Niebuhr <alexander@nbhr.io> 2023-12-05 15:25:07 +0100
committerGravatar GitHub <noreply@github.com> 2023-12-05 15:25:07 +0100
commit9a47143231e3cc02de36d54d8105e5580cb1378a (patch)
treefc0eb4774ebb616a69aa3714d5478e8354d4b6f2 /packages/integrations/cloudflare/src
parent68273a5d6f08287e724d64413862509c8b255188 (diff)
downloadastro-9a47143231e3cc02de36d54d8105e5580cb1378a.tar.gz
astro-9a47143231e3cc02de36d54d8105e5580cb1378a.tar.zst
astro-9a47143231e3cc02de36d54d8105e5580cb1378a.zip
fix(cloudflare): fix wasm plugin (#89)
Co-authored-by: lilnasy <69170106+lilnasy@users.noreply.github.com>
Diffstat (limited to 'packages/integrations/cloudflare/src')
-rw-r--r--packages/integrations/cloudflare/src/utils/wasm-module-loader.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/integrations/cloudflare/src/utils/wasm-module-loader.ts b/packages/integrations/cloudflare/src/utils/wasm-module-loader.ts
index 65a0e826d..b93b9ef29 100644
--- a/packages/integrations/cloudflare/src/utils/wasm-module-loader.ts
+++ b/packages/integrations/cloudflare/src/utils/wasm-module-loader.ts
@@ -92,7 +92,7 @@ export default wasmModule;
if (!/__WASM_ASSET__/g.test(code)) return;
- const final = code.replaceAll(/__WASM_ASSET__([a-z\d]+).wasm.mjs/g, (s, assetId) => {
+ const final = code.replaceAll(/__WASM_ASSET__([A-Za-z\d]+).wasm.mjs/g, (s, assetId) => {
const fileName = this.getFileName(assetId);
const relativePath = path
.relative(path.dirname(chunk.fileName), fileName)