Skip to content

Commit

Permalink
Address review
Browse files Browse the repository at this point in the history
Co-Authored-By: Liam Murphy <43807659+Liamolucko@users.noreply.github.com>
  • Loading branch information
daxpedda and Liamolucko committed Mar 15, 2023
1 parent c09bb3b commit 510533a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1376,9 +1376,15 @@ pub fn function_table() -> JsValue {
pub enum ShimFormat {
/// The shim is an ES module.
EsModule,
/// The shim is regular JavaScript.
/// The shim doesn't use any module system, and instead exposes a global variable
/// with its API.
///
/// It has to be imported as a script to work properly, as the global variable is
/// created by simply declaring a top-level variable, which only works in scripts.
NoModules {
/// The name of the global variable.
/// The name of the global variable the shim exposes.
///
/// By default, this is `"wasm_bindgen"`.
global_name: String,
},
}
Expand Down

0 comments on commit 510533a

Please sign in to comment.