[Suggestion] Consider using `esbuild` for 100x speedup
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 5.6k
- Forks
- 696
- Avg merge
- 8m
- Merged PRs (30d)
- 7
Description
Do you want to request a feature or report a bug?
https://github.com/evanw/esbuild is a new bundler that is 100x more performant than current JS based bundlers. Large code-bases can be bundled and minified in under a second.
One issue with full migration to esbuild is that babel plugins would not be supported. However, for users who do not use babel plugins, or who can work around it, there could be an option to switch metro from using babel to esbuild.
Alternatively, just the minifier from esbuild could be used, as an extra option to terser or uglify.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files or tests are named. Start by reviewing Metro's existing Babel, terser, and uglify integration, then assess the esbuild bundler and minifier alternatives described in the issue. Done should mean a concrete, scoped direction for adding esbuild support, including how Babel plugin compatibility would be handled.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100