rwsdk
Version:
Build fast, server-driven webapps on Cloudflare with SSR, RSC, and realtime
10 lines (9 loc) • 361 B
JavaScript
import { glob } from "glob";
import { normalizeModulePath } from "../lib/normalizeModulePath.mjs";
export async function resolveForcedPaths({ patterns, projectRootDir, }) {
return (await glob(patterns, {
cwd: projectRootDir,
absolute: true,
realpath: true,
})).map((filepath) => normalizeModulePath(filepath, projectRootDir));
}