We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed9c093 commit 8becac5Copy full SHA for 8becac5
.changeset/dry-pots-cry.md
@@ -0,0 +1,5 @@
1
+---
2
+'vite-plugin-checker': patch
3
4
+
5
+handle EmptyResult in stylelint to prevent _postcssResult from being empty
packages/vite-plugin-checker/src/logger.ts
@@ -421,10 +421,12 @@ export function normalizeStylelintDiagnostic(
421
column: d.endColumn,
422
},
423
}
424
-
+ let cssSource = ''
425
+ if (diagnostic._postcssResult && 'css' in diagnostic._postcssResult) {
426
+ cssSource = diagnostic._postcssResult.css
427
+ }
428
const codeFrame = createFrame({
- // @ts-ignore
- source: diagnostic._postcssResult.css ?? '',
429
+ source: cssSource,
430
location: loc,
431
})
432
0 commit comments