You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by zhangmingyuan666 September 3, 2024
I am using rspack in Node.js, and use swc-loader as the loader of js files. I need to get or set some global variables in node.js to do something.
In babel plugin, I always use global like global.storeInfo to get global variables in node.js.
But in swc plugin, I have to write plugin in rust environment and then build it as wasm to work in Node.js environment. Can I get or set node.js global variables in swc plugin?
My Node version is 18.18.0, my swc plugin's swc_core version is 0.91.0
The text was updated successfully, but these errors were encountered:
Discussed in #9526
Originally posted by zhangmingyuan666 September 3, 2024
I am using rspack in Node.js, and use swc-loader as the loader of js files. I need to get or set some global variables in node.js to do something.
In babel plugin, I always use
global
likeglobal.storeInfo
to get global variables in node.js.But in swc plugin, I have to write plugin in rust environment and then build it as wasm to work in Node.js environment. Can I get or set node.js global variables in swc plugin?
My Node version is 18.18.0, my swc plugin's swc_core version is 0.91.0
The text was updated successfully, but these errors were encountered: