webpack/examples/wasm-simple/template.md

48 lines
571 B
Markdown
Raw Normal View History

2017-10-30 20:56:57 +08:00
This very simple example shows usage of WebAssembly.
WebAssembly modules can be imported like other modules. Their download and compilation happens in parallel to the download and evaluation of the javascript chunk.
# example.js
``` javascript
{{example.js}}
```
# math.js
``` javascript
{{math.js}}
```
# js/output.js
``` javascript
{{js/output.js}}
```
# js/0.output.js
``` javascript
{{js/0.output.js}}
```
# js/1.output.js
``` javascript
{{js/1.output.js}}
```
# Info
## Unoptimized
2017-10-30 20:56:57 +08:00
```
{{stdout}}
```
## Production mode
2017-10-30 20:56:57 +08:00
```
{{production:stdout}}
2017-10-30 20:56:57 +08:00
```