Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/didi/mpx
/ normalizeAbsolutePath
Function
normalizeAbsolutePath
packages/unocss-plugin/lib/web-plugin/utils.js:130–136 ·
view source on GitHub ↗
(path)
Source
from the content-addressed store, hash-verified
128
}
129
130
function
normalizeAbsolutePath (path) {
131
if
(node_path.isAbsolute(path)) {
132
return
node_path.normalize(path)
133
}
else
{
134
return
path
135
}
136
}
137
138
function
getPath (id) {
139
return
id.replace(/\?.*$/,
''
)
Callers
1
apply
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected