We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
scriptletGlobals
1 parent ddab0c8 commit fd7ed7cCopy full SHA for fd7ed7c
build.ts
@@ -64,8 +64,7 @@ scriptlets['${scriptlet.name}'] = {
64
aliases: ${JSON.stringify(scriptlet.aliases || [])},
65
${scriptlet.world ? `world: '${scriptlet.world}',` : '' }
66
requiresTrust: ${scriptlet.requiresTrust || false},
67
-func: function (...args) {
68
-const scriptletGlobals = {};
+func: function (scriptletGlobals = {}, ...args) {
69
${deps.map((dep) => dep.toString()).join('\n')}
70
${scriptlet.fn.toString()};
71
${scriptlet.fn.name}(...args);
0 commit comments