mirror of
https://github.com/langgenius/dify.git
synced 2026-04-15 09:57:03 +08:00
fix: pnpm build
This commit is contained in:
parent
d6144ac24b
commit
4111f82644
@ -20,7 +20,7 @@ import type {
|
||||
} from '../types/collaboration'
|
||||
import { cloneDeep } from 'es-toolkit/object'
|
||||
import { isEqual } from 'es-toolkit/predicate'
|
||||
import { LoroDoc, LoroList, LoroMap, UndoManager } from 'loro-crdt/base64'
|
||||
import { LoroDoc, LoroList, LoroMap, UndoManager } from 'loro-crdt'
|
||||
import { CRDTProvider } from './crdt-provider'
|
||||
import { EventEmitter } from './event-emitter'
|
||||
import { emitWithAuthGuard, webSocketClient } from './websocket-manager'
|
||||
|
||||
@ -60,6 +60,10 @@ export default defineConfig(({ mode }) => {
|
||||
],
|
||||
resolve: {
|
||||
tsconfigPaths: true,
|
||||
alias: [
|
||||
// Use the base64 build in Vite-based pipelines (vinext/vitest) to avoid wasm loader incompatibilities.
|
||||
{ find: /^loro-crdt$/, replacement: 'loro-crdt/base64' },
|
||||
],
|
||||
},
|
||||
|
||||
// vinext related config
|
||||
|
||||
Loading…
Reference in New Issue
Block a user