Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
6
const
interopDefault = m => (m && m.default ? m.default : m);
7
8
const
normalizeURL = url => (url[url.length - 1] ===
'/'
? url : url +
'/'
);
9
10
if
(process.env.NODE_ENV ===
'development'
) {
11
// enable preact devtools
Callers
2
entry.js
File · 0.85
init
Function · 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…