An open API service indexing awesome lists of open source software.

https://github.com/ballercat/minimal-webpack5-wasm-demo

Minimal Webpack 5 Raw WebAssembly Demo
https://github.com/ballercat/minimal-webpack5-wasm-demo

Last synced: about 1 year ago
JSON representation

Minimal Webpack 5 Raw WebAssembly Demo

Awesome Lists containing this project

README

          

# Minimal Webpack 5 Raw WebAssembly Demo

Webpack 5 demo of WebAssembly with the most minimal configuration.

```
yarn
yarn webpack serve
```

Navigate to `localhost:9000`, open console and see a native WebAssembly module running.

You should see the following output in your browsers console:

```
[HMR] Waiting for update signal from WDS...
index.js:519 [webpack-dev-server] Hot Module Replacement enabled.
index.js:519 [webpack-dev-server] Live Reloading enabled.
index.js:8 ---- Sync Wasm Module
index.js:10 ƒ $_Z4facti() { [native code] }
index.js:11 1
index.js:12 2
index.js:13 6
index.js:16 ---- Async Wasm Module
index.js:17 ƒ $_Z4facti() { [native code] }
index.js:18 1
index.js:19 2
index.js:20 6
```