GoogleChromeLabs / GoogleChromeLabs/postcss-jit-props

Breaks when the source file only contains @at rules.

Open
#40 4 comments 4 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
237
Forks
8
PR merge metrics
No merged PRs in 30d

Description

Hello!

When processing a source file which only contains at-rules, the plugin breaks.

From my error code and brief skim, it seems to occur from Line 123 of `index.js`.

The error reported reads as: `Cannot read properties of undefined (reading 'source')`.

The problem file in question is a file from open-props: [`open-props/media.css`](https://github.com/argyleink/open-props/blob/main/src/props.media.css).

I will do a workaround and create a pull request once I get home.

Thanks

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.