MCPcopy Create free account
hub / github.com/preactjs/preact-cli / interopDefault

Function interopDefault

packages/cli/src/lib/entry.js:6–6  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4const { h, render, hydrate } = Preact;
5
6const interopDefault = m => (m && m.default ? m.default : m);
7
8const normalizeURL = url => (url[url.length - 1] === '/' ? url : url + '/');
9

Callers 2

entry.jsFile · 0.85
initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…