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

feat: Add stylis for css #598

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

feat: Add stylis for css #598

wants to merge 1 commit into from

Conversation

jantimon
Copy link

@jantimon jantimon commented Aug 3, 2021

stylis is "A Light–weight CSS Preprocessor." used by libraries like styled-components

this pr adds support for parsing and manipulation of css using stylis:

stylis

@jantimon jantimon changed the title feat: Add stylis feat: Add stylis for css Aug 3, 2021

const ID = 'stylis';

function removeLength(node, lineLengths) {
Copy link
Owner

@fkling fkling Aug 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the purpose of this function? Why is it necessary to remove length?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a workaround - if length:0 is present astexplorer will hide all children

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

2 participants