TypeScript with ESM modules fails to compile a program importing this @mapbox/mapbox-gl-language package.
import language from "@mapbox/mapbox-gl-language";
// This `default` property is `undefined`.
console.log(language.default);
// This `language` default export is the actual constructor. But this leads to a compile error.
const control = new language();
Problem
TypeScript with ESM modules fails to compile a program importing this
@mapbox/mapbox-gl-language
package.References