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

Fix: Preact build doesn't work due to incorrect Preact imports #235

Merged
merged 1 commit into from
Jul 8, 2023

Conversation

SaiMaheshwarReddy
Copy link
Contributor

What: Preact build doesn't work due to incorrect Preact imports

Why: downshift is not working with preact

How: I had to go through the build process and change import alias from "preact" to "preact/compat"

Checklist:

  • Documentation
  • Tests
  • Ready to be merged

Steps I followed to test:

  1. Made the alias change for kcd-scripts in downshift node_modules
  2. I ran the build and copied preact build output in a sample preact app
  3. It started working :)

Downshift issues related to this:

  1. Preact build doesn't work due to incorrect Preact imports downshift-js/downshift#1430
  2. Preact build imports hooks from wrong module downshift-js/downshift#1198

Copy link
Owner

@kentcdodds kentcdodds left a comment

Choose a reason for hiding this comment

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

This is a backing change, bit I believe downshift is the only active library using this feature so I have no problem merging.

@kentcdodds
Copy link
Owner

Thank you for working on this. Hopefully CI works because this project isn't very active and some things could be outdated.

@codecov
Copy link

codecov bot commented Jul 8, 2023

Codecov Report

Merging #235 (b39924d) into main (4b50543) will increase coverage by 0.06%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #235      +/-   ##
==========================================
+ Coverage   63.33%   63.39%   +0.06%     
==========================================
  Files          21       21              
  Lines         600      601       +1     
  Branches      227      227              
==========================================
+ Hits          380      381       +1     
  Misses        179      179              
  Partials       41       41              
Impacted Files Coverage Δ
src/config/babelrc.js 53.33% <100.00%> (+1.06%) ⬆️

@kentcdodds kentcdodds merged commit aea6b3c into kentcdodds:main Jul 8, 2023
13 checks passed
@kentcdodds
Copy link
Owner

@all-contributors please add @SaiMaheshwarReddy for code

@allcontributors
Copy link
Contributor

@kentcdodds

I've put up a pull request to add @SaiMaheshwarReddy! 🎉

@github-actions
Copy link

github-actions bot commented Jul 8, 2023

🎉 This PR is included in version 14.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants