zeroc-ice / ice

All-in-one solution for creating networked applications with RPC, pub/sub, server deployment, and more.
https://zeroc.com
GNU General Public License v2.0
2k stars 592 forks source link

Build Ice for JavaScript as an ES6 module #2284

Closed pepone closed 3 weeks ago

pepone commented 3 weeks ago

This PR updates Ice for JavaScript to build a ES6 module, using standard import/export functionality. Previously we build a CommonJS module and also generate a bundle.

The code generation was also updated to only support ES6 style modules. There are many improvements to do in follow-up PRs but there are already lot of changes here, and got things to a state where all tests are passing.

Currently we are only running NodeJS tests with JavaScript. As the next steps I plan to replace then with the typescript tests.