• Extracts import paths from a JavaScript content.

    Parameters

    • content: string

      The content to extract imports from.

    • filePath: string

      The path to the file to extract imports from.

    Returns string[]

    Array of absolute paths to imported files.