Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/sveltejs/svelte
/ get_basename
Function
get_basename
packages/svelte/src/compiler/utils/mapped_code.js:443–445 ·
view source on GitHub ↗
(filename)
Source
from the content-addressed store, hash-verified
441
* @param {string} filename
442
*/
443
export
function
get_basename(filename) {
444
return
/** @
type
{string} */ (filename.split(/[/\\]/).pop());
445
}
446
447
/**
448
* @param {string} filename
Callers
3
constructor
Method · 0.90
merge_with_preprocessor_map
Function · 0.85
get_source_name
Function · 0.85
Calls
1
pop
Method · 0.80
Tested by
no test coverage detected