Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for custom transformers and their documentation #8961

Closed
iostreamer-X opened this issue May 19, 2024 · 2 comments
Closed

Support for custom transformers and their documentation #8961

iostreamer-X opened this issue May 19, 2024 · 2 comments

Comments

@iostreamer-X
Copy link

Describe the feature

tsc has support for custom transformers which enable changing code before outputting. Its interface is:

interface CustomTransformers {
        /** Custom transformers to evaluate before built-in .js transformations. */
        before?: (TransformerFactory<SourceFile> | CustomTransformerFactory)[];
        /** Custom transformers to evaluate after built-in .js transformations. */
        after?: (TransformerFactory<SourceFile> | CustomTransformerFactory)[];
        /** Custom transformers to evaluate after built-in .d.ts transformations. */
        afterDeclarations?: (TransformerFactory<Bundle | SourceFile> | CustomTransformerFactory)[];
    }

I am not able to find an equivalent in swc. Any chance I simply failed to find documentation or is it genuinely not supported?

Babel plugin or link to the feature description

https://github.com/itsdouges/typescript-transformer-handbook?tab=readme-ov-file

Additional context

No response

@kdy1
Copy link
Member

kdy1 commented May 19, 2024

SWC has Wasm plugin support

@swc-bot
Copy link
Collaborator

swc-bot commented Jun 18, 2024

This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@swc-project swc-project locked as resolved and limited conversation to collaborators Jun 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

3 participants