Skip to content

Pragma is not detected if it's not the first comment in file #22

@victor-wm

Description

@victor-wm

Hello!

We have encountered a situation where the /* @refresh reload */ pragma is not respected because it's not the first comment in the file.

It's particularly tricky because our files have a copyright header which is added automatically, meaning we need /* @refresh reload */ to appear after the copyright.

In contrast, both Typescript and ESLint pragmas work fine after the copyright header. i would expect solid-refresh to be the same.

Example:

// This is a copyright header
// which is automatically injected

/* @refresh reload */

const App = (props) => {
...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions