Sign in
concept-collection
/
stan-web-ide
Code
Commits
Issues
0
Pull requests
0
Actions
Branches
1
Tags
0
main
Branches
main
stan-web-ide
/
src
/
stan
/
pathShim.ts
8 lines · 261 B
Copy
Copied
Blame
History
Raw
1
// Browser stand-in for node's 'path', aliased in vite.config.ts:
2
// stan-language-server imports { join } for #include resolution.
3
4
export
function
join
(
...
parts
:
string
[]
):
string
{
5
return
parts.
join
(
'/'
).
replace
(
/\/{2,}/g
,
'/'
);
6
}
7
8
export
default
{ join };