DEV Community


Discussion on: Svelte x 11ty

gobeli profile image
Etienne Author

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'],

Thread Thread
joakim profile image

Nice, thank you so much :)