You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to add an option to include the #sha256=XXXXXXXX SRI tag in the automatic includes added? For the ones I add to the plugin section itself, I can manually include it and they will be respected when compiling the tampermonkey script
but for a react-ts script, the automatically added ones I can't add them unless I manually postprocess the compiled script and add them each time it is compiled.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Would it be possible to add an option to include the
#sha256=XXXXXXXX
SRI tag in the automatic includes added? For the ones I add to the plugin section itself, I can manually include it and they will be respected when compiling the tampermonkey scriptbut for a react-ts script, the automatically added ones I can't add them unless I manually postprocess the compiled script and add them each time it is compiled.
As the automatic import is already getting the react import from jsdeliver and that it offers an option in the API to obtain the hash already:
https://www.jsdelivr.com/docs/data.jsdelivr.com#get-/v1/packages/npm/-package-@-version-
Would it be ok to include an option (or make it default) to automatically tag the default imports with the SRI tag?
Beta Was this translation helpful? Give feedback.
All reactions