Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add future config key
  • Loading branch information
thecrypticace committed Oct 26, 2024
commit f12f83ff2c1dbda24e3c3c034312a23b3669f45f
1 change: 1 addition & 0 deletions packages/tailwindcss/src/compat/config/resolve-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ interface ResolutionContext {

let minimal: ResolvedConfig = {
blocklist: [],
future: {},
prefix: '',
important: false,
darkMode: null,
Expand Down
9 changes: 9 additions & 0 deletions packages/tailwindcss/src/compat/config/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,12 @@ export interface UserConfig {
export interface ResolvedConfig {
important: boolean | string
}

// `future` key support
export interface UserConfig {
future: 'all' | Record<string, boolean>
}

export interface ResolvedConfig {
future: Record<string, boolean>
}