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

fix: proxy file when dev #940

Merged
merged 1 commit into from
Aug 27, 2020

Conversation

MoonBall
Copy link
Contributor

Changes

Fix discussion #939

The content of proxy file is buffer before modification.

Testing

@MoonBall MoonBall requested a review from a team as a code owner August 27, 2020 12:40
@vercel
Copy link

vercel bot commented Aug 27, 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/4knchyvx1
✅ Preview: https://snowpack-git-fork-moonball-fix-proxy-file-when-dev.pikapkg.vercel.app

Copy link
Owner

@FredKSchott FredKSchott left a comment

Choose a reason for hiding this comment

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

Ah yea, looks like we skip import proxies entirely now based on that if (typeof code !== 'string') return line. I think we can just get rid of it entirely, since the purpose of this function is to wrap all files for dev if needed, regardless of what the contents of that file are.

Want to get this fix out asap, so I'm going to merge locally and then remove that line. Thanks for the fix!

@FredKSchott FredKSchott merged commit 75b23c3 into FredKSchott:master Aug 27, 2020
FredKSchott added a commit that referenced this pull request Aug 27, 2020
FredKSchott pushed a commit that referenced this pull request Aug 27, 2020
FredKSchott added a commit that referenced this pull request Aug 27, 2020
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