iTowns / itowns

A Three.js-based framework written in Javascript/WebGL for visualizing 3D geospatial data
http://www.itowns-project.org
Other
1.07k stars 290 forks source link

ESM distribution #2296

Closed Desplandis closed 3 months ago

Desplandis commented 3 months ago

Description

Follow-up of #2256, this PR drops the CJS (CommonJS modules) distribution is favor of a standard ESM (ECMAScript) distribution.

Fixes #2256

Motivation and Context

2252 bumped the web browser requirements. This guarantees that we now only support ESM-compatible browsers. Moreover, three.js is currently migrating to a pure ESM package.

TODOs