mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-31 19:01:54 +02:00
fix require issue in bundle, add sourcemaps
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Value } from 'slate'
|
||||
import { Node, Value } from 'slate'
|
||||
import { atob, btoa } from 'isomorphic-base64'
|
||||
|
||||
/**
|
||||
@@ -48,7 +48,6 @@ function deserialize(string, options) {
|
||||
*/
|
||||
|
||||
function deserializeNode(string, options) {
|
||||
const { Node } = require('slate')
|
||||
const raw = decode(string)
|
||||
const node = Node.fromJSON(raw, options)
|
||||
return node
|
||||
|
Reference in New Issue
Block a user