@kcws/rspack-config
Version:
rspack configuration builder
18 lines • 563 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.relative = void 0;
const node_path_1 = require("node:path");
/**
* resolve relative path from input path.
*
* @param paths - input path
* @returns absolute path from relative path
*/
const relative = (input) => {
const paths = [input].flat();
// rspack config was not support module yet.
// eslint-disable-next-line unicorn/prefer-module
return (0, node_path_1.resolve)(__dirname, ...paths);
};
exports.relative = relative;
//# sourceMappingURL=utils.js.map