This commit is contained in:
2026-04-29 08:30:52 -07:00
commit b053d27321
1660 changed files with 329972 additions and 0 deletions

21
node_modules/@11ty/eleventy/src/Util/PathPrefixer.js generated vendored Normal file
View File

@ -0,0 +1,21 @@
import path from "node:path";
import PathNormalizer from "./PathNormalizer.js";
class PathPrefixer {
static normalizePathPrefix(pathPrefix) {
if (pathPrefix) {
// add leading / (for browsersync), see #1454
// path.join uses \\ for Windows so we split and rejoin
return PathPrefixer.joinUrlParts("/", pathPrefix);
}
return "/";
}
static joinUrlParts(...parts) {
return PathNormalizer.normalizeSeperator(path.join(...parts));
}
}
export default PathPrefixer;