Skip to content

Built for people who want to own their automations. Join the waitlist for an invite.

Package listing

@kody/netlify

scripts/kody-loader.mjs

9 lines · 251 B · JavaScript
export async function resolve(specifier, context, nextResolve) {
	if (specifier === 'kody:runtime') {
		return {
			url: new URL('./kody-runtime-mock.mjs', import.meta.url).href,
			shortCircuit: true,
		}
	}
	return nextResolve(specifier, context)
}