fix: avoid bundling svelte/compiler for analytics version#202
fix: avoid bundling svelte/compiler for analytics version#202smart wants to merge 1 commit intocloudinary-community:mainfrom
Conversation
Use the runtime svelte VERSION export for analytics techVersion instead of importing from svelte/compiler, which prevents pulling compiler code into consumer bundles. Made-with: Cursor
|
@smart is attempting to deploy a commit to the Cloudinary DevX Team on Vercel. A member of the Team first needs to authorize it. |
|
ghostdevv
left a comment
There was a problem hiding this comment.
This doesn't seem to be the right fix, as I don't think VERSION is exported from the root svelte package even in v5
Summary
svelte/compilerimport inconfig.tswithVERSIONfromsvelteto avoid pulling compiler code into client bundlesVERSIONis unavailable by falling back to0.0.0sveltemock inconfig.test.tsto includeVERSIONTest plan
node packages/svelte-cloudinary/scripts/version.jspnpm --filter svelte-cloudinary testpnpm --filter svelte-cloudinary buildMade with Cursor