mirror of
https://github.com/penpot/penpot.git
synced 2025-05-18 09:16:10 +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
|
||||
};
|
||||
|
|
4
frontend/vendor/draft-js/package.json
vendored
4
frontend/vendor/draft-js/package.json
vendored
|
@ -1,9 +1,9 @@
|
|||
{
|
||||
"name": "@penpot/draft-js-wrapper",
|
||||
"name": "@penpot/draft-js",
|
||||
"version": "1.0.0",
|
||||
"description": "Penpot Draft-JS Wrapper",
|
||||
"main": "index.js",
|
||||
"module": " index.js",
|
||||
"type": "module",
|
||||
"packageManager": "yarn@4.3.1",
|
||||
"author": "Andrey Antukh",
|
||||
"license": "MPL-2.0",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue