refact,simplf

This commit is contained in:
jacob
2024-05-25 16:22:25 -05:00
parent 12a8f0c5d7
commit fb418c0675
5 changed files with 24 additions and 11 deletions

View File

@@ -6,7 +6,7 @@ import * as Id from './id'
import { Module } from '../types/core-modules';
export const parseCallsite = (site: string) => {
const pathobj = path.parse(site.replace(/file:\\?/, "")
const pathobj = path.posix.parse(site.replace(/file:\\?/, "")
.split(path.sep)
.join(path.posix.sep))
return { name: pathobj.name,