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

Function normalizeURL

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

Source from the content-addressed store, hash-verified

6const interopDefault = m => (m && m.default ? m.default : m);
7
8const normalizeURL = url => (url[url.length - 1] === '/' ? url : url + '/');
9
10if (process.env.NODE_ENV === 'development') {
11 // enable preact devtools

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…