Skip to content

Override vite/client definitions #12276

Description

@korywka

Describe the problem

There is a problem to import SVG files in SvelteKit:

The problem is that these types should be set before vite/client (https://vitejs.dev/guide/features.html#client-types)

image

But vite/client is automatically included in generated ambient.d.ts file. And there is no way to write something before:

image

Describe the proposed solution

Include some file for vite/client overrides in tsconfig.json?

image

Alternatives considered

No response

Importance

would make my life easier

Additional Information

No response

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions