leegeunhyeok
leegeunhyeok
SCSWC Community
Created by leegeunhyeok on 3/15/2025 in #questions
How to handle the execution order of WASM plugins
Hello, I'm developing a plugin to transform code in Rust. It seems that the options provided by SWC (e.g., externalHelpers, env.targets, ...) are processed after all plugins have completed execution. For example, if I want a plugin to execute after the externalHelpers transformation, is there any approach I can try? (In my case, I’m transforming all import and export statements. However, when the externalHelpers option is enabled, I can’t handle the import statements for external helpers in the plugin.)
4 replies