0.0.4 • Published 4 years ago

@wasm-tool/wasi v0.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

wasm-tool/wasi

Import WebAssembly modules that expose the WebAssembly System Interface (WASI).

Installation

npm install --save-dev @wasm-tool/wasi

Usage: webpack

Include the following rule in your webpack configuration:

{
  // ...
  module: {
    rules: [
      {
        test: /\.wasm/,
        type: "javascript/auto",
        use: {
          loader: "@wasm-tool/wasi"
        }
      }
    ]
  }
  // ...
}

We need to set the type to JavaScript to bypass webpack's wasm support (as a workaround, for now). Which will also prevent the loading to work correclty in non-web environements.

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago