Skip to content

Allow to pass options to babel react preset #1245

@stollr

Description

@stollr

The babel react preset allows to specify some options. I'd like to set the runtime to automatic instead of the default classic. Currently this is not possible with the enableReactPreset() method.

It would be nice to make this possible. Otherwise it is not possible to write react components in function style (see here) without adding an import React from 'react', although the React module is not used.

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