Skip to content

refactor: Remove babel dependency - #471

Merged
jdalrymple merged 3 commits into
all-contributors:mainfrom
jdalrymple:chore/remove-babel
Mar 5, 2026
Merged

jdalrymple merged 3 commits into
all-contributors:mainfrom
jdalrymple:chore/remove-babel

Conversation

@jdalrymple

@jdalrymple jdalrymple commented Mar 3, 2026 •

Copy link
Copy Markdown
Contributor

What: Now that we deliver a complete ESM package, babel compilation isnt needed.

Why: Its no longer needed

How: Remove babel config

Checklist:

  • Documentation
  • Tests
  • Ready to be merged
  • Added myself to contributors table

@lwasser

lwasser commented Mar 5, 2026

Copy link
Copy Markdown
Member

Oh wow, so @jdalrymple for npm distributions that don't require a transpile step, we can literally just copy the src to dist/ and that's what NPM ingests? I'm asking because in the Python world, some things are actually moved around, like metadata, in the build step. But here we don't need any sort of file modification as the src/ that we work on is the exact same src in dist/ that npm will receive? 🤯 (head exploding x10 given how complex python packaging is).

@lwasser

lwasser commented Mar 5, 2026

Copy link
Copy Markdown
Member

we can merge this!

@jdalrymple

Copy link
Copy Markdown
Contributor Author

Oh wow, so @jdalrymple for npm distributions that don't require a transpile step, we can literally just copy the src to dist/ and that's what NPM ingests? I'm asking because in the Python world, some things are actually moved around, like metadata, in the build step. But here we don't need any sort of file modification as the src/ that we work on is the exact same src in dist/ that npm will receive? 🤯 (head exploding x10 given how complex python packaging is).

Wild eh! haha We could still do some modifications if we wanted, but compiling things isnt needed. If we were ever interested in shrinking the package size for example, we could still have a minified process, but thats usually less needed for a nodejs package vs a library used in the browser.

@jdalrymple
jdalrymple force-pushed the chore/remove-babel branch from 4baf281 to 718cda6 Compare March 5, 2026 03:30
@jdalrymple
jdalrymple merged commit fb1eea9 into all-contributors:main Mar 5, 2026
3 checks passed
@jdalrymple
jdalrymple deleted the chore/remove-babel branch March 5, 2026 03:33
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