openapi-generator-cli icon indicating copy to clipboard operation
openapi-generator-cli copied to clipboard

[Question] ES Modules support for TS/JS client generators

Open mdovhopo opened this issue 3 years ago • 0 comments

Hey, i am curious, is it possible to add ES Modules support to TS/JS generators? Right now it is possible to generate es6 modules, but Node.js recently adopted ES Modules natively. But there are some differences between es6 modules & ES Modules.

First of all it's imports:

In ES6 you would do:

import { Configuration } from './configuration'; 

But in native ES Modules it's

import { Configuration } from './configuration.js'; 

I am not really an expert on Java, but i could contribute if you point me into the right direction, thanks :)

mdovhopo avatar Aug 05 '22 12:08 mdovhopo