vite/playground/wasm/worker.js
2022-05-09 09:36:14 +02:00

6 lines
149 B
JavaScript

import init from './add.wasm'
init().then((exports) => {
// eslint-disable-next-line no-undef
self.postMessage({ result: exports.add(1, 2) })
})