swc/crates/wasm/example
2021-11-09 20:42:49 +09:00
..
.gitignore refactor: Flatten crates (#2697) 2021-11-09 20:42:49 +09:00
index.js refactor: Flatten crates (#2697) 2021-11-09 20:42:49 +09:00
package.json refactor: Flatten crates (#2697) 2021-11-09 20:42:49 +09:00
readme.txt refactor: Flatten crates (#2697) 2021-11-09 20:42:49 +09:00
webpack.config.js refactor: Flatten crates (#2697) 2021-11-09 20:42:49 +09:00

To run this example, you first need to build swc for the web:

cd swc/wasm
./scripts/build_web_release.sh

Then run npm install:

cd swc/wasm/example
npm install

Finally, start the webpack-dev-server:

cd swc/wasm/example
npm run serve

Browse to http://localhost:8080