schnee effeckt und fehler Korektur
This commit is contained in:
15
node_modules/globby/to-path.js
generated
vendored
Normal file
15
node_modules/globby/to-path.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
import {fileURLToPath} from 'node:url';
|
||||
|
||||
const toPath = urlOrPath => {
|
||||
if (!urlOrPath) {
|
||||
return urlOrPath;
|
||||
}
|
||||
|
||||
if (urlOrPath instanceof URL) {
|
||||
urlOrPath = urlOrPath.href;
|
||||
}
|
||||
|
||||
return urlOrPath.startsWith('file://') ? fileURLToPath(urlOrPath) : urlOrPath;
|
||||
};
|
||||
|
||||
export default toPath;
|
||||
Reference in New Issue
Block a user