mirror of
https://github.com/penpot/penpot.git
synced 2025-05-10 20:46:37 +02: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:
parent
6014612046
commit
0cd446421d
9 changed files with 1002 additions and 3066 deletions
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
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue