I have some code that is working well on my unbundled vite app and I am now in the process of using webpack and making a bundled file to serve up to a remote server.
The problem comes in with selection box functionality (three.js webgl - box selection), it works fine on the unbundled file, but upon bundling, it is not working.
Select box working on unbundled file:
Select box not working on bundled file:
This is my import statement for selectBox and selectionhelper
import { SelectionBox } from 'three/examples/jsm/interactive/SelectionBox.js';
import { SelectionHelper } from 'three/examples/jsm/interactive/SelectionHelper.js';
Any ideas on what is going wrong? Other three.js functionality is working as intended.