From 48f66dc835c62b5b710d81d3b3af758a1473daed Mon Sep 17 00:00:00 2001 From: zhe he Date: Fri, 15 Aug 2025 00:20:19 +0800 Subject: [PATCH 01/25] Drop warning from browser build (#18732) Co-authored-by: Jordan Pittman --- CHANGELOG.md | 4 +++- packages/@tailwindcss-browser/src/index.ts | 6 ------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index eee51b99ac53..be477ec62d70 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -- Nothing yet! +### Changed + +- Drop warning from browser build ([#18731](https://github.com/tailwindlabs/tailwindcss/issues/18731)) ## [4.1.12] - 2025-08-13 diff --git a/packages/@tailwindcss-browser/src/index.ts b/packages/@tailwindcss-browser/src/index.ts index 74992157f5d5..49c7e4675fc8 100644 --- a/packages/@tailwindcss-browser/src/index.ts +++ b/packages/@tailwindcss-browser/src/index.ts @@ -2,12 +2,6 @@ import * as tailwindcss from 'tailwindcss' import * as assets from './assets' import { Instrumentation } from './instrumentation' -// Warn users about using the browser build in production as early as possible. -// It can take time for the script to do its work so this must be at the top. -console.warn( - 'The browser build of Tailwind CSS should not be used in production. To use Tailwind CSS in production, use the Tailwind CLI, Vite plugin, or PostCSS plugin: https://tailwindcss.com/docs/installation', -) - /** * The type used by `