// Minimal path module implementation for browser
const path = {
  resolve: (...parts) => parts.join("/"),
  join: (...parts) => parts.join("/"),
  dirname: (p) => p.split("/").slice(0, -1).join("/"),
  basename: (p) => p.split("/").pop(),
  extname: (p) => {
    const parts = p.split(".");
    return parts.length > 1 ? "." + parts.pop() : "";
  },
};

export default path;
