You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm proposing a change to the build system to significantly improve development speed.
Moving from a JavaScript-based transpiler like Babel to a Rust-based one like SWC or Go-based one like esbuild could drastically reduce transpiling times, making the development loop faster and more efficient.
This migration is a low-effort, high-reward task.
It primarily involves a simple loader swap within webpack with minimal configuration changes.
This change would involve:
Adding @swc/core and swc-loader to the project's dependencies.
Updating the existing webpack configurations to replace babel-loader with swc-loader.
Configuring SWC to handle the necessary transformations (e.g., modern JavaScript syntax, React).
Benefits:
Faster Development: Shorter wait times for builds and live reloads.
Future-Proofing: Align the project with modern web development transpiling tools.
Fewer Dev dependencies: Unlike babel swc or esbuild only require 1 to 2 dev dependencies.
I would be happy to help with a pull request if this proposal is something the team is interested in.