-
Notifications
You must be signed in to change notification settings - Fork 809
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
Moving to a "modern" build system (hardcore level) #1036
Comments
karma has been deprecated. |
Oh, vite is an interesting idea. I've only used it for web front-ends but it makes sense that one could use it for building a library, too. 🤔 Moving away from having to maintain a webpack config seems extremely worth it, though! 😆 With respect to the Karma deprecation, would moving to Jest make sense? I would be happy to help with that if so. (We use Jest and RTL at Slack and I find it to be an effective combination.) :) |
I thought of moving the test system to jest, but we need to run on the browser as we have a few trick bits to have more reliable tests (to detect hidden node and other things). I tried to rework the project using vite, but I gave up. Maybe other option like swc or esbuild by hand would be also nice. Suggestions? |
I don't have any hands-on experience with swc or esbuild, to tell you the truth, so I can't really offer an informed suggestion. 😹 That said, we are starting to experiment with swc at Slack. I started looking into the two and they seem pretty comparable in speed, stability, and features. I expect it will come down to whichever one has better ergonomics...? One thing worth calling out is that bundling with swc is done via swcpack, which has this caveat:
|
I opened a separate issue to discuss replacing Karma here: #1038 |
swc has a nice toolchain - it's my favorite for now (but I also have may problems setting up a project with it). Let me give swc a chance... |
react-modal uses an old toolchain system for build and testing (not that the tools aren't great,
but because javascript toolchain are pretty messy and not reliable as things changes all the time).
The idea is to move to a "modern" build system (probably vite as it also has compatibility with karma,
but suggestions are welcome) as people apparently have move to it.
The text was updated successfully, but these errors were encountered: