mirror of
https://github.com/hanzoai/vite.git
synced 2026-10-30 19:36:16 +00:00
6 lines
149 B
JavaScript
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) })
|
|
})
|