🐛 Fix some issues with vendored libraries and build process

related to how package.json is defined and how modules
are exported
This commit is contained in:
Andrey Antukh 2024-11-05 13:21:32 +01:00 committed by Andrés Moya
parent 6014612046
commit 0cd446421d
9 changed files with 1002 additions and 3066 deletions

View file

@ -5,10 +5,9 @@
*
* Copyright (c) KALEIDOS INC
*/
import pkg from "draft-js";
'use strict';
import {
export const {
BlockMapBuilder,
CharacterMetadata,
CompositeDecorator,
@ -18,9 +17,9 @@ import {
SelectionState,
convertFromRaw,
convertToRaw
} from "draft-js";
} = pkg;
import DraftPasteProcessor from 'draft-js/lib/DraftPasteProcessor';
import DraftPasteProcessor from 'draft-js/lib/DraftPasteProcessor.js';
import {Map, OrderedSet} from "immutable";
function isDefined(v) {
@ -408,8 +407,3 @@ export function selectionEquals(selection, other) {
selection.getFocusOffset() === other.getFocusOffset() &&
selection.getIsBackward() === other.getIsBackward();
}
export {
convertToRaw,
convertFromRaw
};