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
- Host: GitHub
- URL: https://github.com/ballercat/minimal-webpack5-wasm-demo
- Owner: ballercat
- Created: 2021-10-16T17:52:31.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2022-04-29T20:17:02.000Z (over 4 years ago)
- Last Synced: 2025-06-21T16:40:35.869Z (about 1 year ago)
- Language: JavaScript
- Size: 43 KB
- Stars: 34
- Watchers: 2
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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
```