react-draggable icon indicating copy to clipboard operation
react-draggable copied to clipboard

Bad paths after bundling with rollup following react 18 upgrade

Open SensationSama opened this issue 1 year ago • 0 comments
trafficstars

Hey, so perhaps this is an issue with my rollup configuration but I thought this would be the best place to post. After upgrading to react 18, the resulting bundled file is looking for a /utils/ directory, which is part of the un-bundled react-draggable module. I'm not seeing a clear way to get the contents of utils to properly bundle as they naturally did in react 17.

Before the upgrade the resulting bundle index.js (react 17)

var _positionFns = positionFns;
var _shims = shims;
var _DraggableCore = _interopRequireDefault(DraggableCore);
var _log = _interopRequireDefault(log);

After the upgrade the resulting bundle index.js (react 18)

var _positionFns = require("./utils/positionFns");
var _shims = require("./utils/shims");
var _DraggableCore = _interopRequireDefault(require("./DraggableCore"));
var _log = _interopRequireDefault(require("./utils/log"));

SensationSama avatar May 09 '24 16:05 SensationSama