mirror of
https://github.com/vitejs/vite.git
synced 2024-11-21 14:48:41 +00:00
5 lines
119 B
JavaScript
5 lines
119 B
JavaScript
import init from './add.wasm?init'
|
|
init().then(({ exports }) => {
|
|
self.postMessage({ result: exports.add(1, 2) })
|
|
})
|