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(tags): better support for tags other than tagged templates #1014

Merged
merged 1 commit into from Jul 24, 2022

Conversation

Anber
Copy link
Collaborator

@Anber Anber commented Jul 22, 2022

Motivation

BaseProcessor had some tagged-template-specific logic that wasn't needed in other types of tags.

Summary

This PR introduces the new abstract class TaggedTemplateProcessor that contains tagged template logic from BaseProcessor. BaseProcessor is now entirely abstract and can be used to implement any type of expression for zero-runtime transformations. As an example of such expression, this PR introduces PoC-package @linaria/griffel that partially implements logic from @griffel/react.

@Anber Anber changed the title feat(griffel): proof of concept feat(tags): better support for tags other than tagged templates Jul 24, 2022
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