@lexical/file
Version: 
This package provides the file import/export feature for Lexical.
13 lines (12 loc) • 582 B
JavaScript
/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 */
const mod = await (process.env.NODE_ENV !== 'production' ? import('./LexicalFile.dev.mjs') : import('./LexicalFile.prod.mjs'));
export const editorStateFromSerializedDocument = mod.editorStateFromSerializedDocument;
export const exportFile = mod.exportFile;
export const importFile = mod.importFile;
export const serializedDocumentFromEditorState = mod.serializedDocumentFromEditorState;