Skip to content

Commit 8a3b46d

Browse files
committed
fix: null check for plugins
1 parent 46c2025 commit 8a3b46d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ export default defineNuxtModule<ModuleOptions>({
139139
nuxt.options.build.postcss as any
140140
postcssOptions.plugins = {
141141
...(postcssOptions.plugins || {}),
142-
'tailwindcss/nesting': postcssOptions.plugins['tailwindcss/nesting'] ?? {},
143-
'postcss-custom-properties': postcssOptions.plugins['postcss-custom-properties'] ?? {},
142+
'tailwindcss/nesting': postcssOptions.plugins?.['tailwindcss/nesting'] ?? {},
143+
'postcss-custom-properties': postcssOptions.plugins?.['postcss-custom-properties'] ?? {},
144144
tailwindcss: tailwindConfig
145145
}
146146

0 commit comments

Comments
 (0)