Skip to content

Commit

Permalink
umd is hell
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiSpencer committed Jun 15, 2024
1 parent 845ae93 commit 3912b64
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/dnd/Container.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import React, { Component } from "react";
import ReactDOM from "react-dom";
import container, { dropHandlers } from "trello-smooth-dnd";
// import container, { dropHandlers } from "trello-smooth-dnd";
import * as tsd from "trello-smooth-dnd";

const container = tsd.default || tsd;
const dropHandlers = tsd.dropHandlers || tsd;

container.dropHandler = dropHandlers.reactDropHandler().handler;
container.wrapChild = (p: any) => p; // dont wrap children they will already be wrapped
Expand Down
6 changes: 5 additions & 1 deletion src/dnd/Draggable.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import React, { Component, ReactElement } from "react";
import { constants } from "trello-smooth-dnd";
// import { constants } from "trello-smooth-dnd";
import * as tsd from "trello-smooth-dnd";

const constants = tsd.default || tsd;

const { wrapperClass } = constants;

export class Draggable extends Component<{
Expand Down

0 comments on commit 3912b64

Please sign in to comment.