Skip to content

How do I pass parameters to the swc-plugin? #9147

Closed Answered by kdy1
chenwll asked this question in Q&A
Discussion options

You must be logged in to vote

{} after the path to Wasm file is the config object passed to the plugin.

See https://github.com/swc-project/plugins/blob/main/packages/styled-jsx/src/lib.rs#L13 for example of getting the config from Wasm plugin

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@chenwll
Comment options

@kdy1
Comment options

kdy1 Jul 5, 2024
Maintainer

Answer selected by chenwll
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants