Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// from
function esm(templateStrings, ...substitutions) {
let js = templateStrings.raw[0];
for (let i=0; i<substitutions.length; i++) {
js += substitutions[i] + templateStrings.raw[i+1];
return 'data:text/javascript;base64,' + btoa(js);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.