Skip to content

Conversation

@giacomoferretti
Copy link
Contributor

Recently stumbled upon this error, which there is already a workaround here: #161 (comment)

It seems that in #162 these optional arguments were made necessary. See more below.

Before

export interface RawOptions {
  tailwindConfig?: string
  tailwindFunctions?: string[]
  tailwindAttributes?: string[]
}

After

export interface PluginOptions {
  /**
   * Path to the Tailwind config file.
   */
  tailwindConfig?: string

  /**
   * List of custom function and tag names that contain classes.
   */
  tailwindFunctions: string[]

  /**
   * List of custom attributes that contain classes.
   */
  tailwindAttributes: string[]
}

@adamwathan
Copy link
Member

Thanks!

@adamwathan adamwathan merged commit 14979f4 into tailwindlabs:main Aug 22, 2023
@giacomoferretti giacomoferretti deleted the fix/optional-plugin-options branch August 24, 2023 07:18
bronisMateusz pushed a commit to bronisMateusz/prettier-plugin-tailwindcss-drupal that referenced this pull request Apr 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants