-
Notifications
You must be signed in to change notification settings - Fork 916
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
Feature: Adding SRI hash(es) for HMR script resources #1268
Feature: Adding SRI hash(es) for HMR script resources #1268
Conversation
Removes the hard overwriting of console from jest and instead pipes it into a file that can be analyzed if something failes.
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/pikapkg/snowpack/a4p4yqk2c |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with 1 question! IE isn't supported since it has no ESM support, so we're all good there!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Changes
This PR will add SRI hashes to HMR resources for building the pre-generated HTML file.
It will also resolves some conflicting issues with the logging for the
test-dev
resources.closes #1214
Testing
Build a test "snowpack-create-app" and run with with
snowpack dev
and got the following result:Also the smoke-dev test was adjusted accordingly
Docs
In my opinion this is a very small technical feature that doesn't need documenation as there's no configuration option for it anyway.
Assumptions / Disclaimers:
This will break support for IE in general, if this is supposed to work in IE then we need to remove the SRI hash for IE builds.
It was originally build under the intention to not be supported by IE.