With -lib jsImport
you can decorate any extern class with @:js.import
like so:
@:js.import(@star './some/path.js') extern class Foo {}
becomesimport * as Foo from './some/path.js'
@:js.import(@default './some/path.js') extern class Foo {}
becomesimport Foo from './some/path.js'
@:js.import('./some/path.js') extern class Foo {}
becomesimport { Foo } from './some/path.js'
@:js.import('./some/path.js', 'SomeName') extern class Foo {}
becomesimport { SomeName } from './some/path.js'