swc/crates/binding_core_wasm/example
2022-05-04 14:25:28 +00:00
..
.gitignore refactor(bindings): Rename crates (#4337) 2022-04-15 22:47:44 +09:00
index.js chore(repo): Configure prettier (#4523) 2022-05-04 14:25:28 +00:00
package.json refactor(bindings): Rename crates (#4337) 2022-04-15 22:47:44 +09:00
readme.txt refactor(bindings): Rename crates (#4337) 2022-04-15 22:47:44 +09:00
webpack.config.js chore(repo): Configure prettier (#4523) 2022-05-04 14:25:28 +00: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