When using interact.js v1.10.17 with babel and webpack, all seems to work fine in development, but errors occur in production due to the use of the "dev-tools/babel-plugin-prod" babel plugin.
I can't reproduce this in online tools such as JSFilddle, so I'm attaching a reproduction example:
interactjs-test.zip
To make it easier to see the errors, the reproduction adds the "dev-tools/babel-plugin-prod" plugin in development mode.
Expected behavior
No errors occur and dragging works.
Actual behavior
Errors occur and no interaction is possible.
Since this only happens in production, errors messages are not very helpful, but here are stack traces anyway:
When using interact.js v1.10.17 with babel and webpack, all seems to work fine in development, but errors occur in production due to the use of the "dev-tools/babel-plugin-prod" babel plugin.
I can't reproduce this in online tools such as JSFilddle, so I'm attaching a reproduction example: interactjs-test.zip
To make it easier to see the errors, the reproduction adds the "dev-tools/babel-plugin-prod" plugin in development mode.
Expected behavior
No errors occur and dragging works.
Actual behavior
Errors occur and no interaction is possible. Since this only happens in production, errors messages are not very helpful, but here are stack traces anyway:
In Firefox:
In Chrome:
It sort of seems like domObjects is not initialized.
System configuration
interact.js version: 1.10.17 Browser name and version: Chrome (105.0.5195.127) and Firefox (104.0.2) Operating System: Windows 10