arcjet-js
arcjet-js copied to clipboard
Track SDK bundle size
Vercel edge functions have a maximum bundle size depending on the plan you're on (Hobby: 1 MB, Pro: 2 MB, Ent: 4 MB) so we need to keep track of our size.
Vercel is pivoting away from edge functions so this may become less of a concern. The Node.js runtime limit is 250 MB. That said, we should still track this because smaller is better for load times and middleware is still edge only (for now).