UNPKG

@servable/tools

Version:

Servable tools is a utility that builds a protocol's manifest and documents it.

13 lines (10 loc) 361 B
export default async ({ path, cache, cacheKey }) => { try { // console.log("[Servable]", `importJSDefault for path ${path}`) return (await import(path)).default // console.log("[Servable]", `importJSDefault for path ${path} successful`) } catch (e) { console.error("[Servable]", `importJSDefault for path ${path}:`, e) } return null }