openapi-typescript-codegen
openapi-typescript-codegen copied to clipboard
Add option to use ESM style import specifiers
The code generated by this package is currently not suitable to be easily used in ESM projects. This is because for ESM, we need different import specifiers: https://nodejs.org/api/esm.html#import-specifiers
So e.g.:
export { ApiError } from './core/ApiError should be export { ApiError } from './core/ApiError.js
It would be helpful to provide a configuration option, that changes the generated code accordingly.
Seems like #1226 is trying to fix this