move newt to web worker
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
#!/bin/sh
|
||||
echo Builds the workMain.js and copies newt.js
|
||||
echo monaco worker
|
||||
esbuild --bundle node_modules/monaco-editor/esm/vs/editor/editor.worker.js > public/workerMain.js
|
||||
# bare javascript, it fakes node api for the idris code in newt.js
|
||||
esbuild src/shim.ts > public/shim.js
|
||||
cp ../build/exec/newt.js public
|
||||
# uncomment to make this smaller
|
||||
# esbuild --minify ../build/exec/newt.min.js > public/newt.js
|
||||
echo newt worker
|
||||
esbuild src/worker.ts > public/worker.js
|
||||
echo newt
|
||||
cat ../build/exec/newt.js |grep -v '^#'>> public/worker.js
|
||||
|
||||
# esbuild --minify ../build/exec/newt.min.js > public/newt.js
|
||||
|
||||
Reference in New Issue
Block a user