Closed alexanderniebuhr closed 3 weeks ago
Latest commit: 2da4e184914f35b51468a74b0c0d1e13c2a44069
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
I changed the approach to use a vite plugin to externalize the imports based on resolveId, this should be more flexible and work for all modes, which follows this suggestion
I still don't think this is a breaking change or that we need to update the docs, because without this change, user had to add the code manually before, in there astro.config.js
.
cloudflare:
imports can't be bundled, since those are runtime features AFAIK. So before if the user did not externalize those imports manually, they ended up with an error during astro build
🤔
But happy to discuss this further.
I see. Sounds like more a bugfix then.
UPDATE: I changed the approach to use a vite plugin to externalize the imports based on
resolveId
, this should be more flexible and work for all modes.Changes
astro dev
, without usingwrangler
, because in a local runtime the import wouldn't work, but at least the config wouldn't complain anymore.Testing
Docs