Skip to content

Type imports in build are not transformed when bundling #1008

Open

Description

import type { OperationGeneratorConfig } from '../../types/image'

works in development but after bundling all types are combined into one types.d.ts:

image

which breaks type imports and causes the types to be any.

The above type import should be transformed to import type { OperationGeneratorConfig } from '../../types'

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

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions