Skip to content

Conversation

@kristoferjoseph
Copy link
Contributor

Swaps out css with postcss due to lack of support.
Adds CSS nesting selectors.

Copy link
Contributor

@ryanbethel ryanbethel left a comment

Choose a reason for hiding this comment

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

This looks good. Glad we can finally support new css features as soon as they land.

In order to support compiling this to WASM I think we will have to vendor the prettify package eventually. It uses node APIs (fs and path) that are not available for WASM.

@kristoferjoseph
Copy link
Contributor Author

OK I forked and fixed the existing postcss-prettify here:
https://github.com/enhance-dev/postcss-prettify

Will update this PR to use the fixed version

@kristoferjoseph
Copy link
Contributor Author

OK @ryanbethel I updated to an external postcss shady-selectors plugin and forked prettify to remove unused deps that were breaking WASM compilation. Can you give this another whirl and see if it satisfies the requirements please?

Copy link
Contributor

@ryanbethel ryanbethel left a comment

Choose a reason for hiding this comment

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

I think the PR is great. Code changes look good. When trying to compile to wasm I had a new issue. The wasm now compiles so that problem is fixed. But the binary goes from 4meg to 13meg. Not sure if that is a problem. The bigger problem is that it does not work. I suspect some async function, but I will have to dig in a bit more to find out.

@kristoferjoseph
Copy link
Contributor Author

Bummer.

Copy link
Contributor

@ryanbethel ryanbethel left a comment

Choose a reason for hiding this comment

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

LGTM.

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.

3 participants