mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-28 12:24:23 +01:00
hack imports of wasm due to the issues in Vite and Next.js build systems
This commit is contained in:
15
bindings/javascript/packages/wasm-runtime/runtime.cjs
Normal file
15
bindings/javascript/packages/wasm-runtime/runtime.cjs
Normal file
@@ -0,0 +1,15 @@
|
||||
const { MessageHandler, instantiateNapiModuleSync, instantiateNapiModule } = require('@emnapi/core')
|
||||
const { getDefaultContext } = require('@emnapi/runtime')
|
||||
const { WASI } = require('@tybys/wasm-util')
|
||||
|
||||
const { createFsProxy, createOnMessage } = require('./dist/fs-proxy.cjs')
|
||||
|
||||
module.exports = {
|
||||
MessageHandler,
|
||||
instantiateNapiModule,
|
||||
instantiateNapiModuleSync,
|
||||
getDefaultContext,
|
||||
WASI,
|
||||
createFsProxy,
|
||||
createOnMessage,
|
||||
}
|
||||
Reference in New Issue
Block a user