Skip to content

How to disable Babel 7 for Typescript #314

@chawax

Description

@chawax

Hi,

I try to migrate a project from React Native 0.55.4 to 0.57.4. The project uses Typescript and I have problems because Babel 7 doesn't support namespaces and enums. The problem is that they are used in code generated from Swagger. So I have no easy way (and no time) to change this.

From what I understood, Babel 7 now compiles Typescript while it was not the case before. Is there a way to configure Metro bundler so that it doesn't use Babel 7 to compile Typescript ? So that it could work the way it did before ?

Thanks in advance,

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