@vitjs/utils
Version:
@vitjs/utils
12 lines (11 loc) • 375 B
JavaScript
;
// ref: https://github.com/umijs/umi/blob/master/packages/utils/src/winPath/winPath.ts
Object.defineProperty(exports, "__esModule", { value: true });
function default_1(path) {
const isExtendedLengthPath = /^\\\\\?\\/.test(path);
if (isExtendedLengthPath) {
return path;
}
return path.replace(/\\/g, '/');
}
exports.default = default_1;