SvelteKit renders both SSR and client-side - I have a simple HTML module that I want to include, that calls fetch - currently the polyfill causes the client-side to try to require, and other permutations (bare import etc) cause fetch-is-not-found errors server-side. I see some mentions in the issues of creating a webpack pipeline specifically for each use case, which seems confusing since I assumed the point of this module is to be a polyfill server-side?
SvelteKit renders both SSR and client-side - I have a simple HTML module that I want to include, that calls fetch - currently the polyfill causes the client-side to try to
require
, and other permutations (bare import etc) cause fetch-is-not-found errors server-side. I see some mentions in the issues of creating a webpack pipeline specifically for each use case, which seems confusing since I assumed the point of this module is to be a polyfill server-side?Thanks