Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Moor committed Oct 13, 2020
1 parent 7d88a2e commit 43f01a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,5 @@ export default [{
mainFields: ['module', 'main']
})
],
external: id => /^(lib0|prosemirror|fs|path|jsdom|isomorphic)/.test(id)
external: id => /^(lib0|lodash|prosemirror|fs|path|jsdom|isomorphic)/.test(id)
}]
4 changes: 2 additions & 2 deletions src/interface.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// eslint-disable-next-line
import { Node, Schema } from 'prosemirror-model'
import flatten from 'lodash.flatten'
import { updateYFragment } from './lib'
import { updateYFragment } from './lib.js'
import * as Y from 'yjs'

/**
Expand Down Expand Up @@ -39,7 +39,7 @@ export function prosemirrorToYDoc (doc, xmlFragment = 'prosemirror') {
*/
export function prosemirrorJSONToYDoc (schema, state, xmlFragment = 'prosemirror') {
const doc = Node.fromJSON(schema, state)
return prosemirrorToYDoc(schema, doc, xmlFragment)
return prosemirrorToYDoc(doc, xmlFragment)
}

/**
Expand Down

0 comments on commit 43f01a9

Please sign in to comment.