Skip to content

How to build plugins to support CSS-in-JS with evaluation phase #6594

Answered by kwonoj
chentsulin asked this question in Q&A
Discussion options

You must be logged in to vote

I do not believe there is a way to dynamically evaluate values in the current plugin implementation. After all, SWC runs in a rust's host runtime context and plugin also runs in its wasm runner, not in the JS context.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by kdy1
Comment options

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

kdy1 Dec 7, 2022
Maintainer

@kwonoj
Comment options

kwonoj Dec 7, 2022
Collaborator

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