include GLTFLoader and ObitControls in rollup

Hello,
I’m configuring a special build to modify the rollup file since some of my customers sill use an old browser in a WinXP S.O.

I modified browserslist to include Chrome version 50 or later which is correct now.

I also would like to include GLTFLoader so that can be compatible with Chrome (current version is not)

how to include GLTFLoader within rollup config?

thanks

Solution

use three.js to export or rollup.config.js,

Alternatives

I have tried several ways but none of them have worked.

tried this in Three.js, but the entire file is broken

export { GLTFLoader } from ‘…/examples/jsm/loaders/GLTFLoader.js’

Additional context

I’m using umd configuration