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: check if preact is being used in tsx #1275

Merged
merged 1 commit into from
Oct 11, 2020
Merged

feat: check if preact is being used in tsx #1275

merged 1 commit into from
Oct 11, 2020

Conversation

intrnl
Copy link
Contributor

@intrnl intrnl commented Oct 11, 2020

Changes

Fixes checkIsPreact returning false for .tsx

Testing

Only tested on my own Preact template.

It should work with the official TS template, though there might be a need for a separate PR that removes @babel/preset-react from the config.

Docs

Not needed.

@intrnl intrnl requested a review from a team as a code owner October 11, 2020 03:56
@vercel
Copy link

vercel bot commented Oct 11, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/pikapkg/snowpack/15mmsh8mr
✅ Preview: https://snowpack-git-patch-1.pikapkg.vercel.app

@FredKSchott
Copy link
Owner

doh, great catch!

@FredKSchott FredKSchott merged commit 1bfc48c into FredKSchott:master Oct 11, 2020
@FredKSchott
Copy link
Owner

For context, I believe that that babel.config.json file in the app-template-preact directories only exists because of jest. If you aren't running tests, it's safe to remove. Otherwise, you can wait until #1197 is merged which should get rid of the requirement altogether.

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.

2 participants