Minimal example making webpack and wasm/Emscripten work together.
Build instructions:
- Clone this gist
npm installnpm start- Open
http://localhost:8080 - Look at console
| /// Finds unused dependencies from pubspec.yaml | |
| /// | |
| /// Achieves this by parsing pubspec.yaml and recursively | |
| /// searching the lib folder for an import statement that | |
| /// contains the name of each package. Prints out the results. | |
| const fs = require("fs"); | |
| const YAML = require("yaml"); | |
| const { execSync } = require("child_process"); | |
| /// Read pubspec.yaml |
Minimal example making webpack and wasm/Emscripten work together.
Build instructions:
npm installnpm starthttp://localhost:8080