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

Allow result of load step to have map with binary data #1313

Merged
merged 1 commit into from
Oct 16, 2020
Merged

Allow result of load step to have map with binary data #1313

merged 1 commit into from
Oct 16, 2020

Conversation

canadaduane
Copy link
Contributor

@canadaduane canadaduane commented Oct 14, 2020

Changes

Previously, the load step only allowed plugins with Buffer type results when there was a single result (i.e. not a map of results--see https://github.com/pikapkg/snowpack/blob/master/snowpack/src/build/build-pipeline.ts#L72). This PR allows a plugin to have multiple results, some string type, other Buffer type.

Testing

I tested this using a modified version of snowpack-plugin-inliner; however, this is my first PR to snowpack and I'm unfamiliar with the test directory structure.

Docs

This is a bug fix only.

@canadaduane canadaduane requested a review from a team as a code owner October 14, 2020 22:42
@vercel
Copy link

vercel bot commented Oct 14, 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/d00vrzcko
✅ Preview: https://snowpack-git-load-result-map-can-have-buffer.pikapkg.vercel.app

@FredKSchott
Copy link
Owner

LGTM & makes sense. Thank you!

@FredKSchott FredKSchott merged commit 05fa08b into FredKSchott:master Oct 16, 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.

2 participants