Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: switch to tsup #1103

Closed
wants to merge 3 commits into from
Closed

Conversation

thebuilder
Copy link

@thebuilder thebuilder commented May 8, 2023

Changes

Switch to tsup, and publish both cjs and esm files for openapi-fetch.
This fixes #1102

How to Review

Validate locally that the build output still works.

Checklist

  • Unit tests updated
  • README updated
  • examples/ directory updated (if applicable)

@changeset-bot
Copy link

changeset-bot bot commented May 8, 2023

🦋 Changeset detected

Latest commit: ce9d6a6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
openapi-fetch Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@drwpow drwpow force-pushed the main branch 5 times, most recently from c94653a to ae7a4f3 Compare May 11, 2023 15:29
@djMax
Copy link

djMax commented May 24, 2023

Any thoughts on this? This problem currently prevents usage in a CJS project.

@drwpow
Copy link
Contributor

drwpow commented Jun 20, 2023

Since #1176 merged, we’ll try that to see if that fixes the issue. Though I’m still keeping tsup in mind in case a problem crops up with the esbuild bundle / packaging. In general, though, I am partial to simpler solutions because they are easy to tweak/debug if needed.

@thebuilder thebuilder closed this Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ERR_REQUIRE_ESM] with openapi-fetch
3 participants