Skip to content

Commit 18e525f

Browse files
authored
fix/esm-rollup-clsx (#754)
* update clsx to clsx in package.json * set clsx as named import instead of default related to: lukeed/clsx#57 also related to: #667 * chore: update yarn.lock
1 parent 2e8b4fe commit 18e525f

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

lib/Draggable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import * as React from 'react';
33
import PropTypes from 'prop-types';
44
import ReactDOM from 'react-dom';
5-
import clsx from 'clsx';
5+
import { clsx } from 'clsx';
66
import {createCSSTransform, createSVGTransform} from './utils/domFns';
77
import {canDragX, canDragY, createDraggableData, getBoundPosition} from './utils/positionFns';
88
import {dontSetMe} from './utils/shims';

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,11 @@
9393
"test"
9494
],
9595
"dependencies": {
96-
"clsx": "^1.1.1",
96+
"clsx": "^2.1.1",
9797
"prop-types": "^15.8.1"
9898
},
9999
"peerDependencies": {
100100
"react": ">= 16.3.0",
101101
"react-dom": ">= 16.3.0"
102102
}
103-
}
103+
}

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2049,10 +2049,10 @@ clone-deep@^4.0.1:
20492049
kind-of "^6.0.2"
20502050
shallow-clone "^3.0.0"
20512051

2052-
clsx@^1.1.1:
2053-
version "1.1.1"
2054-
resolved "https://registry.yarnpkg.com/clsx/-/clsx-1.1.1.tgz#98b3134f9abbdf23b2663491ace13c5c03a73188"
2055-
integrity sha512-6/bPho624p3S2pMyvP5kKBPXnI3ufHLObBFCfgx+LkeR5lg2XYy2hqZqUf45ypD8COn2bhgGJSUE+l5dhNBieA==
2052+
clsx@^2.1.1:
2053+
version "2.1.1"
2054+
resolved "https://registry.yarnpkg.com/clsx/-/clsx-2.1.1.tgz#eed397c9fd8bd882bfb18deab7102049a2f32999"
2055+
integrity sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==
20562056

20572057
color-convert@^1.9.0:
20582058
version "1.9.3"

0 commit comments

Comments
 (0)