-
Notifications
You must be signed in to change notification settings - Fork 19
Init #1
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
Conversation
|
cc/ @github/web-systems |
dgraham
left a comment
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.
⚡️
Co-Authored-By: David Graham <dgraham@github.com>
Co-Authored-By: David Graham <dgraham@github.com>
Co-Authored-By: David Graham <dgraham@github.com>
Co-Authored-By: David Graham <dgraham@github.com>
| "plugins": [ | ||
| ["@babel/plugin-transform-modules-umd", { | ||
| "globals": { | ||
| "selector-set": "SelectorSet" |
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.
The UMD build was looking for selectorSet in global but in the selector-set UMD build the global is set to SelectorSet:
https://github.com/josh/selector-set/blob/master/selector-set.js#L7
This is pretty much lifted from
github/githubbut you can see the only difference in299cf78 where I add the ability to hook into the HTML response so we can do some nonce security checks with
html-safe.js. I'm not a big fan of the approach but I'm unsure on what else to do in order to be able to stop throw if there is a mismatch and not havehtml-safe.jslive in this repo.I've been told that we don't need
html-safe.jsanymore since we are supporting a lot newer browsers that don't have previous security issues as well as a lot stricter CSP that make thehtml-safe.jschecking not needed any more.Ref: https://github.com/github/web-systems/issues/200