From 07e7ed5dffe9ea89a85cc53a15a60ecb60c5dd3b Mon Sep 17 00:00:00 2001 From: Syrus Akbary Date: Tue, 13 Jul 2021 14:35:59 -0700 Subject: [PATCH] Improved README --- lib/js-api/README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/js-api/README.md b/lib/js-api/README.md index 3730e6d59..918d96a70 100644 --- a/lib/js-api/README.md +++ b/lib/js-api/README.md @@ -39,8 +39,11 @@ fn main() -> anyhow::Result<()> { ## Config flags Wasmer has the following configuration flags: -* `wat` (enabled by default): It allows to read WebAssembly files in their text format. - *This feature is normally used only in development environments* +* `wasm-types-polyfill` (enabled by default): it parses the Wasm file to introspect the inner types. __It adds 80Kb to the Wasm bundle__. You can disable it and use `Module::set_type_hints` manually instead if you want a lightweight alternative. + This is needed until the [Wasm JS introspection API proposal](https://github.com/WebAssembly/js-types/blob/master/proposals/js-types/Overview.md) is adopted by browsers + +* `wat`: It allows to read WebAssembly files in their text format. + *This feature is normally used only in development environments, __it will add around 800Kb to the Wasm bundle__* # Build