Extremely Popular
Go to Latest
method Project.prototype.addSourceFileAtPathIfExists
import { Project } from "https://dotland.deno.dev/x/fresh@1.1.5/src/dev/deps.ts";

Adds a source file from a file path if it exists or returns undefined.

Will return the source file if it was already added.

Parameters

filePath: string
  • File path to get the file from.

Returns

SourceFile | undefined