mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-16 05:47:09 +08:00
feat(storage): binding jwst storage to node (#2808)
This commit is contained in:
10
packages/storage/index.js
Normal file
10
packages/storage/index.js
Normal file
@@ -0,0 +1,10 @@
|
||||
import { createRequire } from 'node:module';
|
||||
|
||||
const require = createRequire(import.meta.url);
|
||||
|
||||
/** @type {import('.')} */
|
||||
const binding = require('./storage.node');
|
||||
|
||||
export const Storage = binding.Storage;
|
||||
export const Workspace = binding.Workspace;
|
||||
export const Document = binding.Doc;
|
||||
Reference in New Issue
Block a user