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

chore: update esbuild to latest #1998

Merged
merged 1 commit into from Feb 17, 2022
Merged

chore: update esbuild to latest #1998

merged 1 commit into from Feb 17, 2022

Conversation

jacob-ebey
Copy link
Member

The "issue" that was raised isn't a valid issue with esbuild and should be addressed in user-land (i.e, using libraries as intended by the author). Essentially a little bit of hand holding Esbuild did here has been removed to fall inline with other bundlers in the ecosystem.

Closes: #

  • Docs
  • Tests

The "issue" that was raised isn't a valid issue with esbuild and should be addressed in user-land (i.e, using libraries as intended by the author)
Copy link
Member

@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.

What are we doing to do about people for whom this will be a breaking change? It'll be a lot of people. This really should be a v2 thing I think. Cc @mjackson

@jacob-ebey
Copy link
Member Author

I don't agree with that. It's improper use of the libraries, it should be broken already. I.e attempting to import "default" when no "default" is exported.

@kentcdodds
Copy link
Member

I can be convinced. Would be good to find a codemod anyway 👍

@kiliman
Copy link
Collaborator

kiliman commented Feb 17, 2022

Yeah, I think it's still early in adoption that something like this isn't really a "breaking" change, especially when they were technically not doing it correctly to begin with. I don't think Remix should perpetuate incorrect practices.

Besides, the actual fix is pretty simple. They would literally need to add * as to their imports for the broken ones. Hopefully the error message is clear.

This should be called out in the Release Notes.

@kentcdodds
Copy link
Member

Yeah, a codemod is probably unnecessary. I'd be surprised to find a Remix codebase larger than my own this early after the official release and it won't take me much time to address this issue. I'm convinced 👍

Copy link
Member

@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.

Super 👍 Thanks for keeping us current 👏

@kentcdodds
Copy link
Member

cc @chaance, you'll want to make note of this in the release notes 👆

@kentcdodds kentcdodds merged commit 50e428b into dev Feb 17, 2022
@kentcdodds kentcdodds deleted the jacob/esbuild-upgrade branch February 17, 2022 22:10
@jacob-ebey
Copy link
Member Author

Evan reference: evanw/esbuild#2019 (comment)

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

Successfully merging this pull request may close these issues.

None yet

3 participants