size-limit
emotion
Our great sponsors
size-limit | emotion | |
---|---|---|
6 | 52 | |
6,411 | 17,175 | |
- | 0.6% | |
8.6 | 5.9 | |
about 1 month ago | 17 days ago | |
JavaScript | JavaScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
size-limit
-
How to build tree-shakeable JavaScript libraries
However, you can use the Size Limit library to control the size of a bundle or individual exports. Here’s an example configuration:
-
Trim the fat: tips for keeping bundle size small 🏋️
It's always good to keep track of these things over time so performance doesn't slide. Parcel, which I used for this project, has a helpful bundle analyzer (similar to the one for Webpack) that gives a nice visual overview of a project's bundle. This is especially helpful for identifying bundled dead code coming from packages that could be avoided with tree-shaking. There are also plenty of tools you can integrate with CI to enforce bundle size.
-
Understanding nouns with tinyplural
TSDX is a great package for npm packages like this and even bundles with size-limit to check your gzipped final bundle size. Keeping a tiny package was really important to me so there are 0 dependencies and size-limit made me realise that simplifying all of my checking functions into 1 or 2 core functions that took options would be a better strategy and help reduce the code size.
-
Codebytes: Shorter UUIDs with collision prediction using nanoid
Small. 130 bytes (minified and gzipped). No dependencies Size Limit controls the size.
-
7 Trending projects on GitHub for JavaScript developers
Size Limit is a performance budget tool for JavaScript. It checks every commit on CI, calculates the real cost of your JS for end-users, and throws an error if the cost exceeds the limit. Link: https://github.com/ai/size-limit
-
Egghead's State Management Portfolio Club Journey - Week 1: An RDD Approach
-Mark Erikson and Joel Hooks talk on Redux -When and when not to reach for Redux -Redux Introduction -Egghead course by Dan Abramov on Fundamentals of Redux -RDD article by Tom Preston Werner -Another Article on RDD -Article on writing a great Readme -RDD Readme Example: size-limit
emotion
-
Creating Nx Workspace with Eslint, Prettier and Husky Configuration
emotion [ https://emotion.sh ]
- Why is does modern HTML/CSS seem so complex and convoluted? (details in comment)
-
How are folks feeling about the React team's push toward server components?
dang, I never thought about this implication, and I googled the emotionjs repo there's a currently-active open issue regarding this https://github.com/emotion-js/emotion/issues/2928
-
I created a Zero-Runtime CSS-in-JS Library Compatible with Next.js App Router and RSC
Over my years of working with React, I’ve loved using CSS-in-JS libraries like Emotion and Styled-components. However, their inherent performance overhead from injecting CSS at runtime and their incompatibility with the latest Next.js features such as App Router and React Server Components (RSC) have always been a nagging issue for me.
-
Next.js App Directory Architecture First Impressions
An early difficulty I encountered was using UI component libraries like Mantine and Material UI in the new architecture. After looking through some GitHub issues, the culprit is Emotion, a package many component libraries rely on that does not support server rendering.
- How are you styling in NextJS?
-
CSS Style Guide for Web Dev?
In general I recommend using styled-components or emotion. These directly attach CSS to your components in a scoped way so that your CSS files aren’t stepping on each other’s toes all the time and make sure styling is colocated with the component.
-
Server Components
I ran into this problem as well. The root cause as I understand it is emotion: https://github.com/emotion-js/emotion/issues/2928
-
CSS In JS - The what, why and How's
While integrating component libraries, they may not give you full control over the order in which styles are inserted. (Example issue).
-
Lets create something neat together!
Vanilla Extract (CSS Framework) (Alternative: Emotion)
What are some alternatives?
GrapesJS - Free and Open source Web Builder Framework. Next generation tool for building templates without coding
Tailwind CSS - A utility-first CSS framework for rapid UI development.
tsdx - Zero-config CLI for TypeScript package development
JSS - JSS is an authoring tool for CSS which uses JavaScript as a host language.
tsdx - Zero-config CLI for TypeScript package development [Moved to: https://github.com/jaredpalmer/tsdx]
styled-components - Visual primitives for the component age. Use the best bits of ES6 and CSS to style your apps without stress đź’…
nanoid.
styled-jsx - Full CSS support for JSX without compromises
Plyr - A simple HTML5, YouTube and Vimeo player
linaria - Zero-runtime CSS in JS library
three.js - JavaScript 3D Library.
Sass - Sass makes CSS fun!