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

update buffer ref in esploader #127

Merged
merged 3 commits into from
Jan 31, 2024
Merged

Conversation

brianignacio5
Copy link
Collaborator

@brianignacio5 brianignacio5 commented Jan 30, 2024

Was using a node reference in esploader to Buffer class instead of the buffer npm module added.

This update should add reference to node_modules/buffer instead.

Fix #125

Copy link

Download the artifacts for this pull request:

@RushikeshPatange
Copy link
Contributor

Thank you @brianignacio5 ! , for fixing this issue. I've successfully tested the fix for the newly added C2, on my local environment.

@brianignacio5 brianignacio5 merged commit bad4a87 into main Jan 31, 2024
1 check passed
@brianignacio5 brianignacio5 deleted the bugfix/rm-node-buffer-reference branch January 31, 2024 09:19
@balloob
Copy link
Contributor

balloob commented Feb 10, 2024

I hadn't seen the introduction on Buffer because it was hidden inside the JSDoc API, which I assumed was only adding documentation.

The buffer npm package is 2000 lines of JavaScript for a total of 26kB. Previously, esptool-js worked without it. Can you explain why we need to add this dependency?

Size and impact of bundling buffer npm package (via bundlephobia)
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

package.json library decleration leads esbuild to incorrectly importing index.js as a CommonJS file
3 participants