We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c09bb3b commit 510533aCopy full SHA for 510533a
src/lib.rs
@@ -1376,9 +1376,15 @@ pub fn function_table() -> JsValue {
1376
pub enum ShimFormat {
1377
/// The shim is an ES module.
1378
EsModule,
1379
- /// The shim is regular JavaScript.
+ /// The shim doesn't use any module system, and instead exposes a global variable
1380
+ /// with its API.
1381
+ ///
1382
+ /// It has to be imported as a script to work properly, as the global variable is
1383
+ /// created by simply declaring a top-level variable, which only works in scripts.
1384
NoModules {
- /// The name of the global variable.
1385
+ /// The name of the global variable the shim exposes.
1386
1387
+ /// By default, this is `"wasm_bindgen"`.
1388
global_name: String,
1389
},
1390
}
0 commit comments