mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-02 18:09:58 +08:00
fix: yjs import multiple times
This commit is contained in:
@@ -15,6 +15,11 @@ const nextConfig = {
|
||||
COMMIT_HASH: getCommitHash(),
|
||||
EDITOR_VERSION: dependencies['@blocksuite/editor']
|
||||
},
|
||||
webpack: (config) => {
|
||||
config.resolve.alias.yjs = require.resolve('yjs')
|
||||
// console.log(config)
|
||||
return config
|
||||
},
|
||||
images: {
|
||||
unoptimized: true,
|
||||
},
|
||||
|
||||
@@ -9,10 +9,10 @@
|
||||
"lint": "next lint"
|
||||
},
|
||||
"dependencies": {
|
||||
"@blocksuite/blocks": "0.3.0-20221223170121-bbfb8c0",
|
||||
"@blocksuite/editor": "0.3.0-20221223170121-bbfb8c0",
|
||||
"@blocksuite/blocks": "0.3.0-20221224062401-54874d6",
|
||||
"@blocksuite/editor": "0.3.0-20221224062401-54874d6",
|
||||
"@blocksuite/icons": "^2.0.2",
|
||||
"@blocksuite/store": "0.3.0-20221223170121-bbfb8c0",
|
||||
"@blocksuite/store": "0.3.0-20221224062401-54874d6",
|
||||
"@emotion/css": "^11.10.0",
|
||||
"@emotion/react": "^11.10.4",
|
||||
"@emotion/server": "^11.10.0",
|
||||
@@ -30,6 +30,7 @@
|
||||
"i18next": "^21.9.1",
|
||||
"lit": "^2.3.1",
|
||||
"next": "13.0.1",
|
||||
"yjs": "^13.5.43",
|
||||
"prettier": "^2.7.1",
|
||||
"quill": "^1.3.7",
|
||||
"quill-cursors": "^4.0.0",
|
||||
|
||||
Reference in New Issue
Block a user