From ced63a973e48e542bc889675b2f2d4fb48abfb8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Tue, 21 May 2024 10:21:27 +0900 Subject: [PATCH] feat(plugin/runner): Add description about wasi and file system (#8963) **Description:** - x-ref: https://vercel.slack.com/archives/C01QNLABZJ8/p1715816821287309?thread_ts=1715793483.177469&cid=C01QNLABZJ8 --- crates/swc_plugin_runner/src/transform_executor.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/swc_plugin_runner/src/transform_executor.rs b/crates/swc_plugin_runner/src/transform_executor.rs index b79c9eb5ff2b..a764d3962bb8 100644 --- a/crates/swc_plugin_runner/src/transform_executor.rs +++ b/crates/swc_plugin_runner/src/transform_executor.rs @@ -394,7 +394,9 @@ impl TransformExecutor { .context( "failed to run Wasm plugin transform. Please ensure the version of `swc_core` \ used by the plugin is compatible with the host runtime. See https://swc.rs/docs/plugin/selecting-swc-core for compatibility information. If you are an author of the plugin, please update \ - `swc_core` to the compatible version.", + `swc_core` to the compatible version. + + Note that if you want to use the os features like filesystem, you need to use `wasi`. Wasm itself does not have concept of filesystem.", ) } }