Skip to content

[Plugin development] Different scopes of variables in tests and in the transform #9588

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

You must be logged in to vote

For 2, it's recommended to apply a resolver before your plugin while testing. https://swc.rs/docs/plugin/ecmascript/cheatsheet#apply-resolver-while-testing

Replies: 2 comments 1 reply

Comment options

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

You must be logged in to vote
1 reply
@mytecor
Comment options

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