-
Notifications
You must be signed in to change notification settings - Fork 4
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
klap vs microbundle? #36
Comments
For me, personally
|
Let's add comparison section in readme. I'll keep this open in case someone gets there before me. |
@tunnckoCore it seems |
I did a quick comparison between 👼 Comparison with
|
Feature | klap | microbundle | tsdx |
---|---|---|---|
Typescript Support | ✅ | ✅ | ✅ |
No Dependencies | ✅ | ❌ | ❌ |
Scaffolding | ✅ | ❌ | ✅ |
Dev Server | ✅ | ❌ | ❌ |
CSS | ❌ | ✅ | ✅ |
CSS Modules | ❌ | ✅ | ❌ |
Build Constants | ❌ | ✅ | ✅ |
Testing/Linting | ❌ | ❌ | ✅ |
We should probably start supporting build constants and some variation of CSS (maybe using postcss
).
The testing/linting setup is not a primary goal for klap
and we can skip it.
Yup, true, they kind of moved to a hybrid approach as I remember. Agree.
What do you mean with that? TSDX supports transforming such things, I think. :) |
Build constants are essentially constant variables that are pre-defined. Similar to process.env.NODE_ENV, but more granular. For example, you can define a constant called if(DEBUG){
console.log('this was never supposed to happen')
} Then you just run the build for distribution with Another use case is when you want to create multiple versions of your library with certain features on/off based on a defined build constant. |
Exactly. TSDX does this. Dev expressions, node_env and etc, also uses the replace plugin, so.. probably possible to customize further. |
Looks like klap is in the same domain as microbundle. Would be nice to compare the 2?
The text was updated successfully, but these errors were encountered: