function aliasedSitePath(filePath, siteDir) {
    const relativePath = path_1.default.relative(siteDir, filePath);
    // Cannot use path.join() as it resolves '../' and removes
    // the '@site'. Let webpack loader resolve it.
    return `@site/${relativePath}`;
}
/**
 * Alias filepath relative to site directory, very useful so that we
 * don't expose user's site structure.
 * Example: some/path/to/website/docs/foo.md -> @site/docs/foo.md
 */
Alias filepath relative to site directory, very useful so that we
don't expose user's site structure.
Alias filepath relative to site directory very useful so that we don ' t expose user ' s site structure .
function aliasedSitePath(filePath, siteDir) {
    const relativePath = path_1.default.relative(siteDir, filePath);
    return `@site/${relativePath}`;
}
function aliasedSitePath ( filePath , siteDir ) { const relativePath = path_1 . default . relative ( siteDir , filePath ) ; return ` ${ relativePath } ` ; }
Alias filepath relative to site directory, very useful so that we
 don't expose user's site structure.
Alias filepath relative to site directory very useful so that we don ' t expose user ' s site structure .
// Cannot use path.join() as it resolves '../' and removes // the '@site'. Let webpack loader resolve it.