Comment

Comment by serverlessmania

You'll export a function from your esModule if you want to inject

export const myFn = (...deps) =>

You don't need anything else, for encapsulation you have the EsModule, that what OP meant.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton