Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/babel/babel
/ normalize
Function
normalize
test/runtime-integration/node.cjs:99–106 ·
view source on GitHub ↗
(output)
Source
from the content-addressed store, hash-verified
97
}
98
99
function
normalize(output) {
100
const
root = path.resolve(__dirname,
"../.."
);
101
let
next;
102
while
((next = output.replace(root,
"<ROOT>"
)) !== output) {
103
output = next;
104
}
105
return
output;
106
}
Callers
1
test
Function · 0.70
Calls
1
replace
Method · 0.80
Tested by
1
test
Function · 0.56