lbundle
Version:
Small zero-configuration bundler build on top of Rollup.js and SWC for NPM libraries
32 lines (29 loc) • 874 B
JavaScript
;
var path = require('../_virtual/path.js');
var require$$0 = require('path');
(function (exports) {
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "normalizePath", {
enumerable: true,
get: function() {
return normalizePath;
}
});
const _path = /*#__PURE__*/ _interop_require_default(require$$0);
function _interop_require_default(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
function normalizePath() {
for(var _len = arguments.length, paths = new Array(_len), _key = 0; _key < _len; _key++){
paths[_key] = arguments[_key];
}
const f = _path.default.join(...paths).replaceAll('\\', '/');
if (/^\.[/\\]/.test(paths[0])) return `./${f}`;
return f;
}
} (path.__exports));
//# sourceMappingURL=path.js.map