react-draggable v4.2.0 Release NotesRelease Date: 2019-12-02 // 8 months ago
Previous changes from v4.1.0
- ➕ Add
package.json. There are now three builds:
"main": ES5-compatible CJS build, suitable for most use cases with maximum compatibility.
- For legacy reasons, this has exports of the following shape, which ensures no surprises in CJS or ESM polyfilled environments:
js module.exports = Draggable; module.exports.default = Draggable; module.exports.DraggableCore = DraggableCore;
"web": Minified UMD bundle exporting to
window.ReactDraggablewith the same ES compatibility as the "main" build.
"module": ES6-compatible build using import/export.
This should fix issues like https://github.com/STRML/react-resizable/issues/113 while allowing modern bundlers to consume esm modules in the future.
No compatibility changes are expected.
- ➕ Add