Skip to content

How to determine whether transpilation is for the client-side or for the server-side? #102

@brillout

Description

@brillout

Hi, author of Telefunc here; we'd love to write a SWC plugin for it.

The Telefunc transformer's result is different depending on whether the code is being transpiled for the client-side or for the server-side. Is there a way to get that information from within a SWC plugin?

I've been looking at current SWC plugins (swc-project/plugins) but I couldn't find any client/server discrimination so far.

Looking forward to supporting Next.js 13's --turbo development.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions