swc/wasm/example
2020-06-30 11:14:07 +09:00
..
.gitignore Added example that shows how to run swc in the browser. Instructions can be found in swc/wasm/example/readme.txt () 2020-06-30 11:14:07 +09:00
index.js Added example that shows how to run swc in the browser. Instructions can be found in swc/wasm/example/readme.txt () 2020-06-30 11:14:07 +09:00
package.json Added example that shows how to run swc in the browser. Instructions can be found in swc/wasm/example/readme.txt () 2020-06-30 11:14:07 +09:00
readme.txt Added example that shows how to run swc in the browser. Instructions can be found in swc/wasm/example/readme.txt () 2020-06-30 11:14:07 +09:00
webpack.config.js Added example that shows how to run swc in the browser. Instructions can be found in swc/wasm/example/readme.txt () 2020-06-30 11:14:07 +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