mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
🐛 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:
committed by
Andrés Moya
parent
6014612046
commit
0cd446421d
14
frontend/vendor/draft-js/index.js
vendored
14
frontend/vendor/draft-js/index.js
vendored
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user