Closed adrianlyjak closed 4 weeks ago
Latest commit: f078e77296341b6f928380655fbea0656fd4060f
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
@adrianlyjak yeah a docs pr to the docs repo is needed :)
@alexanderniebuhr @sarah11918 initial merge request for doc updates is here https://github.com/withastro/docs/pull/8211. Let me know if you have any feedback!
Thanks for the update. Will review both PR's ;)
A follow on feature to #249
Changes
.bin
and.txt
files within cloudflare pages functionswasm
related code and config options tomodule-loader
to clarify that this supports multiple formatswasmModuleImports
tocloudflareModules
, retaining the previous so that this is non-breaking..wasm
imports instead of only.wasm?module
imports to be consistent with cloudflare pageswasmModuleImports
by default. Initially we'd decided to keep this opt-in so as to keep the hacky branching from breaking the build: https://github.com/withastro/astro/pull/8542#discussion_r1327315432. There's no more branching, so now the vite plugin here is doing close to nothing except for string comparisons if there's no matching import, so it seems safe to me now. (You'd effectively be opting in by importing the right file format)wrangler.toml
rules
(if cloudflare pages gets support for that, right now it seems to be workers only)Testing
Docs
I changed the name from
wasmModuleImports
tocloudflareModules
in the cloudflare config. The old parameter is still available, but marked as deprecated. Any opinions around terminology here? Most everything I come up with ends up sounding generic, IMO, its hard to name this feature, so I was just going off terminology that cloudflare uses https://developers.cloudflare.com/pages/functions/module-support/.What's the process for updating documentation? Should I make an associated merge request in the docs repo? https://github.com/withastro/docs/blob/main/src/content/docs/en/guides/integrations-guide/cloudflare.mdx