Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: handle EmptyResult in stylelint to prevent _postcssResult from being empty #284

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

liukonghe
Copy link

In certain scenarios, stylelint may return an EmptyResult, leading to an empty _postcssResult. This results in a runtime error when trying to access _postcssResult.css. This commit addresses the issue by handling EmptyResult gracefully, ensuring that _postcssResult is properly populated.

Error Case:
image

Fixed Case:
image

Copy link

changeset-bot bot commented Nov 12, 2023

🦋 Changeset detected

Latest commit: 8becac5

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
vite-plugin-checker Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

netlify bot commented Nov 12, 2023

Deploy Preview for vite-plugin-checker ready!

Name Link
🔨 Latest commit 8becac5
🔍 Latest deploy log https://app.netlify.com/sites/vite-plugin-checker/deploys/6550543051fdf400084189e5
😎 Deploy Preview https://deploy-preview-284--vite-plugin-checker.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

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.

None yet

1 participant