fix: browser was running two copies of ProseMirror's state module (prosemirror-state) at once
This commit is contained in:
1 parent
c47d33eaa9
commit
ca3fe20519
1 file changed
+18
@@ -28,9 +28,27 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
|
optimizeDeps: {
|
||||||
|
include: [
|
||||||
|
'@tiptap/core',
|
||||||
|
'@tiptap/pm/state',
|
||||||
|
'@tiptap/pm/view',
|
||||||
|
'@tiptap/pm/model',
|
||||||
|
'@tiptap/vue-3',
|
||||||
|
'@tiptap/starter-kit',
|
||||||
|
],
|
||||||
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
||||||
},
|
},
|
||||||
|
dedupe: [
|
||||||
|
'@tiptap/core',
|
||||||
|
'@tiptap/pm',
|
||||||
|
'prosemirror-state',
|
||||||
|
'prosemirror-view',
|
||||||
|
'prosemirror-model',
|
||||||
|
'prosemirror-transform',
|
||||||
|
],
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
Reference in new issue
Block a user