The JavaScript portion of my version of the code from https://rustwasm.github.io/docs/book/ I added some features not in the tutorial. This version links to an npm public, scoped npm package @davidsmaynard/wasm-game-of-life
npm run build
npm run start
import { Universe, Cell } from "wasm-game-of-life";
import { memory } from "wasm_game_of_life_bg";
"dependencies": {
"wasm-game-of-life": "file:../pkg"
},
import { Universe, Cell } from "@davidsmaynard/wasm-game-of-life";
import { memory } from "@davidsmaynard/wasm-game-of-life/wasm_game_of_life_bg";
"dependencies": {
"@davidsmaynard/wasm-game-of-life": "^0.1.2"
},