Code below:
export * from 'gl-matrix/vec2';
export function otherFunc() {}
import * as vec2 from './wrapper'
vec2.length(); // here will occur type define error
In addition, the source code structure is different from npm package, this is not a best practice maybe. We have many ways to organize code for code split, But the way now is not very good.
Do you need a pr?