MCPcopy Create free account
hub / github.com/code-forge-io/Remix-Forge / generateLoader

Function generateLoader

src/generators/loader.ts:3–9  ·  view source on GitHub ↗
(config: WorkspaceConfiguration)

Source from the content-addressed store, hash-verified

1import type { WorkspaceConfiguration } from "vscode";
2
3export const generateLoader = (config: WorkspaceConfiguration) => {
4 const customLoader = config.get("loader");
5 if (customLoader) {
6 return customLoader + "\n";
7 }
8 return [`export const loader = async ({ request }: LoaderFunctionArgs) => {`, ` return null;`, `};`].join("\n");
9};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected