1
0
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:
Ian Storm Taylor
2018-02-07 10:53:44 -08:00
parent de4c9e478a
commit 043e1a5fb5
3 changed files with 4 additions and 4 deletions

View File

@@ -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