FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

build: remove non existing `node.import` condition by tkjaergaard · Pull Request #115 · unjs/node-fetch-native · GitHub

build: remove non existing node.import condition - #115

Merged
pi0 merged 1 commit into
unjs:mainfrom
tkjaergaard:main
Feb 7, 2024
Merged

build: remove non existing node.import condition#115
pi0 merged 1 commit into
unjs:mainfrom
tkjaergaard:main

Conversation

Copy link
Copy Markdown
Contributor

🔗 Linked issue

#114

❓ Type of change

Remove the node.import statement from package.json since proxy is only provided in commonJS format, resulting in build errors with Bun.

  • 📖 Documentation (updates to the documentation, readme, or JSdoc annotations)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

Since the proxy is not included in a esm format, it results in the bundlers (Bun in the case of the issue), to throw an error about a missing export.

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

pi0 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Nice find! Thanks for investigation ❤️

pi0 changed the title fix: remove node.import statement from ./proxy definition (fixes #114) build: remove non existing node.import condition Feb 7, 2024
pi0 merged commit 10563c3 into unjs:main Feb 7, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

2 participants


Back | FazBrowse Home | New Git URL