mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-12 20:41:24 +00:00
Replace target flags with --target
This commit deprecates the `--web`, `--no-modules`, and `--nodejs` flags in favor of one `--target` flag. The motivation for this commit is to be consistent between `wasm-bindgen` and `wasm-pack` so documentation for one is applicable for the other (so we don't have to document everywhere what the translation is between flags). Additionally this should make it a bit easier to add new targets (if necessary) in the future as it won't add to the proliferation of flags. For now the old flags (like `--web`) continue to be accepted, but they'll be removed during the next set of breaking changes for `wasm-bindgen`.
This commit is contained in:
@ -720,7 +720,7 @@ where
|
||||
/// Returns a handle to this wasm instance's `WebAssembly.Module`
|
||||
///
|
||||
/// Note that this is only available when the final wasm app is built with
|
||||
/// `--no-modules`, it's not recommended to rely on this API yet! This is
|
||||
/// `--target no-modules`, it's not recommended to rely on this API yet! This is
|
||||
/// largely just an experimental addition to enable threading demos. Using this
|
||||
/// may prevent your wasm module from building down the road.
|
||||
#[doc(hidden)]
|
||||
|
Reference in New Issue
Block a user