Yeah, external dependencies are not resolved for the SSR build, to silence the warning you can explicitly treat date-fns as an external dependency. To do that, just add it to the external: array in the svelte.js shortcode, it should then look like this: external: [/^svelte/, 'date-fns'],
Yeah, external dependencies are not resolved for the SSR build, to silence the warning you can explicitly treat
date-fns
as an external dependency. To do that, just add it to theexternal:
array in thesvelte.js
shortcode, it should then look like this:external: [/^svelte/, 'date-fns'],
Nice, thank you so much :)