hslayers / hslayers-ng

User interface and map building extensions for OpenLayers
https://ng.hslayers.org/
MIT License
37 stars 20 forks source link

Convert hslayers-server from CommonJS to ES module #3816

Closed jmacura closed 9 months ago

jmacura commented 1 year ago

Feature Request

Is your feature request related to a problem? Please describe. hslayers-server uses CommonJS syntax, some packages like "got" already moved to a "pure" ES modules standard.

Describe the solution you'd like Refactor files from CJS to ESM

Describe alternatives you've considered Leave it be until it breaks on some future Node version.

Additional context Mixing CJS and ESM modules requires hacks like dynamic imports (see e.g. #3815 )

fzadrazil commented 1 year ago

Solve #3858 while refactoring the server.