Open lmachens opened 2 years ago
I faced the issue that I could not import openapi-typescript-fetch as ESM. After some research, I think it's related to missing package.json to specify type in the distributions. See https://www.sensedeep.com/blog/posts/2021/how-to-create-single-source-npm-module.html for an example.
openapi-typescript-fetch
type
This pull request adds package.json in the dist folders with module commonjs/module.
package.json
dist
module
commonjs
I faced the issue that I could not import
openapi-typescript-fetch
as ESM. After some research, I think it's related to missing package.json to specifytype
in the distributions. See https://www.sensedeep.com/blog/posts/2021/how-to-create-single-source-npm-module.html for an example.This pull request adds
package.json
in thedist
folders withmodule
commonjs
/module
.