getgauge / gauge-js

JavaScript language plugin for Gauge
MIT License
81 stars 39 forks source link

Migrate gauge-js to be an es module #666

Closed zabil closed 2 months ago

zabil commented 2 months ago

Is your feature request related to a problem? Please describe.

Newer versions of gauge-js dependencies require using ES module type imports, like in the case of chai.

This makes it hard to upgrade gauge dependencies, which can result in using old packages and having issues with dependencies.

Describe the solution you'd like Migrate gauge-js to be an ES module

Describe alternatives you've considered

Switching from using chai to the built-in "node:assert" module, but this issue might come up again with another dependency in the future.

Additional context Refer https://github.com/getgauge/gauge-js/pull/655