A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/OpenAPITools/openapi-generator/issues/14333 below:

[REQ] New typescript-generator option to set file extension for ECMAScript module resolution · Issue #14333 · OpenAPITools/openapi-generator · GitHub

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

I'm trying to generate a pure ESM package (type: "module") using ESM in Node.js, but the Typescript generators generate relative imports without file extensions (e.g. import * as runtime from "../runtime") while Node.js requires file extensions for ESM imports (import * as runtime from "../runtime.js")

Describe the solution you'd like

I can try putting together a PR for this, but would like to gather some feedback about whether it's a good idea first.

Describe alternatives you've considered

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4