Add change log and improve error messages
This commit is contained in:
parent
dcb452a0a8
commit
c42664cc6f
3 changed files with 10 additions and 2 deletions
|
|
@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
|
||||
- Add new standalone builds of Tailwind CSS v4 ([#14270](https://github.com/tailwindlabs/tailwindcss/pull/14270))
|
||||
|
||||
### Added
|
||||
|
||||
- Add support for `@config` to load V3 JavaScript config files ([#14239](https://github.com/tailwindlabs/tailwindcss/pull/14239))
|
||||
|
||||
### Fixed
|
||||
|
||||
- Bring back type exports for the cjs build of `@tailwindcss/postcss` ([#14256](https://github.com/tailwindlabs/tailwindcss/pull/14256))
|
||||
|
|
|
|||
|
|
@ -127,7 +127,9 @@ function extractConfigs(ctx: ResolutionContext, { config, path }: ConfigFile): v
|
|||
|
||||
// Apply configs from presets
|
||||
if (Array.isArray(config.presets) && config.presets.length === 0) {
|
||||
throw new Error('The empty preset `[]` is not supported')
|
||||
throw new Error(
|
||||
'Error in the config file/plugin/preset. An empty preset (`preset: []`) is not currently supported.',
|
||||
)
|
||||
}
|
||||
|
||||
for (let preset of config.presets ?? []) {
|
||||
|
|
|
|||
|
|
@ -342,7 +342,9 @@ async function parseCss(
|
|||
|
||||
for (let file of resolvedConfig.content.files) {
|
||||
if ('raw' in file) {
|
||||
throw new Error('raw content is not currently supported')
|
||||
throw new Error(
|
||||
`Error in the config file/plugin/preset. The \`content\` key contains a \`raw\` entry:\n\n${JSON.stringify(file, null, 2)}\n\nThis feature is not currently supported.`,
|
||||
)
|
||||
}
|
||||
|
||||
globs.push(file.pattern)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue