You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the stripe module from supabase edge functions.
in particular
import Stripe from "https://esm.sh/[email protected]?target=deno&deno-std=0.132.0&no-check";
Here, when I read this, the script size increases from 800KB to 900KB, and I have found that starting the edge function is putting a load on it.
Perhaps the edge function side does not support dynamic loading, or the method is incorrect.
Is there an appropriate way to load it, or is there any way to make the stripe module lighter?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I am using the stripe module from supabase edge functions.
in particular
import Stripe from "https://esm.sh/[email protected]?target=deno&deno-std=0.132.0&no-check";
Here, when I read this, the script size increases from 800KB to 900KB, and I have found that starting the edge function is putting a load on it.
Therefore
const module = await import(
https://esm.sh/[email protected]?target=deno&deno-std=0.132.0&no-check
);When loaded dynamically like
TypeError: module not found https://esm.sh/[email protected]?target=deno&deno-std=0.132.0&no-check
An error occurred.
Perhaps the edge function side does not support dynamic loading, or the method is incorrect.
Is there an appropriate way to load it, or is there any way to make the stripe module lighter?
Thanks Regards,
Beta Was this translation helpful? Give feedback.
All reactions