Skip to content

@ts-self-types not detected if the file starts with a semicolon #569

Description

@nicolo-ribaudo

deno doc is not picking up the @ts-self-types in https://jsr.io/@babel-test-6ae45912/core/0.0.5-8.0.0-alpha.15's ./lib/index.js.

It seems like the problem is the semicolon in that file:

/* @ts-self-types="./index.d.ts" */
;
export const version = "7.26.8";
export { default as File } from "./transformation/file/file.js";
export { default as buildExternalHelpers } from "./tools/build-external-helpers.js";

If I remove it, it works.

I understand that it's weird to have a file starting with ; (and tbh I'm not sure why my file has that 😅), but it's valid syntax and shouldn't affect the comment.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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