Skip to content

Respect directive prologues ("use strict", "use server", etc…) #24

Description

@mcdado

Hello, thank you for your work on the extension!

I have been using it for a long time, and since I recently started to use Next.js, I have a minor issue: whenever there is a Directive Prologue like "use server" or "use client" (or the more general "use strict") the extension will add an import above it, which breaks its purpose.
It would be great if, when they are found, the imports are placed below them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions