Skip to content

Commit 9cd0301

Browse files
authored
Drop @tailwindcss/line-clamp warning (#10915)
* drop `@tailwindcss/line-clamp` check This won't work in places where `require` calls are hoisted so that they become static imports. This means that in some projects this `require` call was breaking the full application even though it was intentionally put in a try/catch block... * update changelog
1 parent 447384b commit 9cd0301

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212
- Try resolving `config.default` before `config` to ensure the config file is resolved correctly ([#10898](https://github.com/tailwindlabs/tailwindcss/pull/10898))
1313
- Pull pseudo elements outside of `:is` and `:has` when using `@apply` ([#10903](https://github.com/tailwindlabs/tailwindcss/pull/10903))
1414
- Update the types for the `safelist` config ([#10901](https://github.com/tailwindlabs/tailwindcss/pull/10901))
15+
- Drop `@tailwindcss/line-clamp` warning ([#10915](https://github.com/tailwindlabs/tailwindcss/pull/10915))
1516

1617
## [3.3.0] - 2023-03-27
1718

src/util/normalizeConfig.js

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -297,22 +297,5 @@ export function normalizeConfig(config) {
297297
}
298298
}
299299

300-
// Warn if the line-clamp plugin is installed
301-
if (config.plugins.length > 0) {
302-
let plugin
303-
try {
304-
plugin = require('@tailwindcss/line-clamp')
305-
} catch {}
306-
307-
if (plugin && config.plugins.includes(plugin)) {
308-
log.warn('line-clamp-in-core', [
309-
'As of Tailwind CSS v3.3, the `@tailwindcss/line-clamp` plugin is now included by default.',
310-
'Remove it from the `plugins` array in your configuration to eliminate this warning.',
311-
])
312-
313-
config.plugins = config.plugins.filter((p) => p !== plugin)
314-
}
315-
}
316-
317300
return config
318301
}

0 commit comments

Comments
 (0)