Skip to content

Commit

Permalink
fix: null check for plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
ineshbose committed Feb 8, 2024
1 parent 46c2025 commit 8a3b46d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ export default defineNuxtModule<ModuleOptions>({
nuxt.options.build.postcss as any
postcssOptions.plugins = {
...(postcssOptions.plugins || {}),
'tailwindcss/nesting': postcssOptions.plugins['tailwindcss/nesting'] ?? {},
'postcss-custom-properties': postcssOptions.plugins['postcss-custom-properties'] ?? {},
'tailwindcss/nesting': postcssOptions.plugins?.['tailwindcss/nesting'] ?? {},
'postcss-custom-properties': postcssOptions.plugins?.['postcss-custom-properties'] ?? {},
tailwindcss: tailwindConfig
}

Expand Down

0 comments on commit 8a3b46d

Please sign in to comment.