Skip to content

Commit

Permalink
feat(plugin/runner): Add description about wasi and file system (#8963)
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 authored May 21, 2024
1 parent 36fddb7 commit ced63a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/swc_plugin_runner/src/transform_executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
)
}
}

0 comments on commit ced63a9

Please sign in to comment.