@lexical/file
Version:
This package provides the file import/export feature for Lexical.
15 lines (14 loc) • 624 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.
*
*/
import * as modDev from './LexicalFile.dev.mjs';
import * as modProd from './LexicalFile.prod.mjs';
const mod = process.env.NODE_ENV !== 'production' ? modDev : modProd;
export const editorStateFromSerializedDocument = mod.editorStateFromSerializedDocument;
export const exportFile = mod.exportFile;
export const importFile = mod.importFile;
export const serializedDocumentFromEditorState = mod.serializedDocumentFromEditorState;