Unverified Commit bfdd128f authored by Donny/강동윤's avatar Donny/강동윤 Committed by GitHub

fix(turbopack): Provide full path to SWC Wasm plugins (#78637)

### What?

Provide full path to the SWC Wasm plugins

### Why?

To align with other SWC Wasm plugin runtimes

### How?

 - Closes PACK-4363
 - Closes #78181
parent 538536ee
...@@ -186,7 +186,7 @@ impl CustomTransformer for SwcEcmaTransformPluginsTransformer { ...@@ -186,7 +186,7 @@ impl CustomTransformer for SwcEcmaTransformPluginsTransformer {
PluginSerializedBytes::try_serialize(&module_program)?; PluginSerializedBytes::try_serialize(&module_program)?;
let transform_metadata_context = Arc::new(TransformPluginMetadataContext::new( let transform_metadata_context = Arc::new(TransformPluginMetadataContext::new(
Some(ctx.file_name_str.to_string()), Some(ctx.file_path_str.to_string()),
//[TODO]: Support env-related variable injection, i.e process.env.NODE_ENV //[TODO]: Support env-related variable injection, i.e process.env.NODE_ENV
"development".to_string(), "development".to_string(),
None, None,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment