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

preprocess to ignore styles and handle typescript #31

Merged
merged 1 commit into from
Jun 17, 2021

Conversation

jelib3an
Copy link
Contributor

This attempts to address #12 and #24. To avoid errors by the svelte compiler, this will preprocess the code to handle typescript and strip away any style blocks since they are not necessary.

Initially, I considered passing in an array of preprocessors as one of the sveld options. But that didn't seem right as the end user should not have to know the internal workings of sveld. Keeping all the logic within sveld seems to make more sense.

I would appreciate any feedback or alternative approaches. We have a component library that we'd like to convert to typescript and is dependent on this working. Thanks!

@metonym metonym self-requested a review June 17, 2021 11:52
Copy link
Collaborator

@metonym metonym left a comment

Choose a reason for hiding this comment

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

Thanks for taking this on – nice work.

@metonym metonym merged commit e8885b9 into carbon-design-system:main Jun 17, 2021
@metonym
Copy link
Collaborator

metonym commented Jun 17, 2021

Published to NPM in v0.8.0

@jelib3an
Copy link
Contributor Author

Thanks for the quick turnaround. It's much appreciated!

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