taye / interact.js

JavaScript drag and drop, resizing and multi-touch gestures with inertia and snapping for modern browsers (and also IE9+)
http://interactjs.io/
MIT License
12.19k stars 782 forks source link

Vite production builds fail after v1.10.25 #1024

Closed viljark closed 7 months ago

viljark commented 7 months ago

Expected behavior

Vite production build succeeds.

Actual behavior

Vite production build fails with after we upgraded to v1.10.25, previous versions were OK.

[commonjs--resolver] Unexpected token
file: /Users/user/project/node_modules/@interactjs/pointer-events/index.js:26:8
24:   propagationStopped = false;
25:   immediatePropagationStopped = false;
26:   global;
            ^
27:   constructor(options) {
28:     this.options = (0, _extend.default)({}, options || {});
error during build:
RollupError: Unexpected token

System configuration

interact.js version: 1.10.25 Vite version: 4.5.0