Skip to content

Is there any way to make WASM Plugin output information to JS #8154

@littleprincewdk

Description

@littleprincewdk

Describe the feature

I want to collect dependencies while transforming js to es5,with babel,i can write a plugin or just parse-traverse-transform,but with swc i will get error:

I tried, when code is long, swc transform api (js plugin too) will crash (old version like 1.3.0 won't).

Then i find a issue: #6255 (comment), it says transform(Module) will be removed.
Ok, so i can only to use wasm plugin:https://swc.rs/docs/plugin/ecmascript/getting-started, but after i tried, i don't know how to output some information to js. Is ther some way,like:

Babel plugin or link to the feature description

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions