Skip to content

fix: fix panic when optional chain partially replaced with defines#3554

Merged
evanw merged 5 commits intoevanw:mainfrom
hi-ogawa:fix-3551
Dec 18, 2023
Merged

fix: fix panic when optional chain partially replaced with defines#3554
evanw merged 5 commits intoevanw:mainfrom
hi-ogawa:fix-3551

Conversation

@hi-ogawa
Copy link
Copy Markdown
Contributor

@hi-ogawa hi-ogawa commented Dec 18, 2023

Closes #3551

Hi, I just started to explore code base for this opportunity to investigate the issue further. Probably this change is not the most appropriate fix, but for the sake of showing what I found so far, I'm making this draft PR first.

I would appreciate if you could provide any guidance on more principled fix (Or if you have a plan to fix in a different PR, then I'm happy to close this PR as well).

Btw, I love esbuild. Thanks a lot for making this awesome tool!

@hi-ogawa hi-ogawa marked this pull request as ready for review December 18, 2023 04:40
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.

Panic when transforming optional chaining with define

2 participants