Skip to content
This repository was archived by the owner on Jan 13, 2022. It is now read-only.
This repository was archived by the owner on Jan 13, 2022. It is now read-only.

transform() doesn't pass *args (only **kwargs) #20

@bennoleslie

Description

@bennoleslie

The documented example of:

jsx.transform('path/to/input/file.jsx', 'path/to/output/file.js')

Does not work. I think the transform functions should be changed as below.

I think transform functions should be:

def transform(jsx_path, *args, **opts):
    return JSXTransformer().transform(jsx_path, *args, **opts)

def transform_string(jsx, *args, **opts):
    return JSXTransformer().transform_string(jsx, *args, **opts)

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