fix(core): use uint53 as yjs client id (#7444)

This commit is contained in:
forehalo
2024-07-08 07:24:32 +00:00
parent ba356f4412
commit 7235779b02
9 changed files with 61 additions and 18 deletions

View File

@@ -1,4 +1,3 @@
import { createRequire } from 'node:module';
import { join } from 'node:path';
import { fileURLToPath } from 'node:url';
@@ -24,8 +23,6 @@ const IN_CI = !!process.env.CI;
export const rootPath = join(fileURLToPath(import.meta.url), '..', '..');
export const workspaceRoot = join(rootPath, '..', '..', '..');
const require = createRequire(rootPath);
const OptimizeOptionOptions: (
buildFlags: BuildFlags
) => webpack.Configuration['optimization'] = buildFlags => ({
@@ -154,7 +151,7 @@ export const createConfiguration: (
events: false,
},
alias: {
yjs: require.resolve('yjs'),
yjs: join(workspaceRoot, 'node_modules', 'yjs'),
lit: join(workspaceRoot, 'node_modules', 'lit'),
'@blocksuite/block-std': blocksuiteBaseDir
? join(blocksuiteBaseDir, 'packages', 'framework', 'block-std', 'src')