Tailwind CSS version 3.0.0 represents a significant update to the popular utility-first CSS framework compared to the previous stable version 2.2.19. Developers will notice a streamlined installation, with the unpacked size of the package drastically reduced from 34MB to just 4MB, contributing to faster install times and reduced disk space usage. This is primarily due to architectural changes and potentially fewer or more efficient dependencies.
While both versions share core dependencies like arg, dlv, chalk, is-glob, resolve, and chokidar, version 3.0.0 introduces esbuild and @swc/core as devDependencies, suggesting a shift towards faster build tools, potentially leveraging SWC (Speedy Web Compiler) for improved performance. Version 2 relies on babel. The removal of dependencies like purgecss, fs-extra, lodash, html-tags, node-emoji, and several others indicates a reorganization of core functionalities, possibly integrating them or replacing them with more lightweight alternatives.
Both version maintains peer dependencies postcss and autoprefixer for compatibility. However, the devDependencies in 2.2.19 contains @tailwindcss/aspect-ratio, @babel/cli and @babel/preset-env that were not present in 3.0.0. Version 3.0.0 introduces @swc/cli and @swc/jest.
The update signals a focus on performance optimization, reduced bundle size, and modernized build processes. Developers should carefully examine the migration guide to understand any breaking changes and the new approaches for previously handled functionalities. The updates promise a faster and leaner development experience with Tailwind CSS.
The are not vulnerabilities for the version 3.0.0 of the package tailwindcss