lbundle
Version:
Small zero-configuration bundler build on top of Rollup.js and SWC for NPM libraries
31 lines (28 loc) • 829 B
JavaScript
;
var url = require('../_virtual/url.js');
var require$$0 = require('path');
require('./path.js');
var path = require('../_virtual/path.js');
(function (exports) {
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "getUrlOfPartial", {
enumerable: true,
get: function() {
return getUrlOfPartial;
}
});
const _path = /*#__PURE__*/ _interop_require_default(require$$0);
const _path1 = path.__exports;
function _interop_require_default(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
function getUrlOfPartial(url) {
const { dir, base } = _path.default.parse(url);
return dir ? `${(0, _path1.normalizePath)(dir)}/_${base}` : `_${base}`;
}
} (url.__exports));
//# sourceMappingURL=url.js.map