We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
_SCRIPT_NAME
1 parent d58ea4a commit d9a9119Copy full SHA for d9a9119
src/processScript/transform.ts
@@ -70,6 +70,8 @@ export function transform(
70
}
71
72
if (program.scope.hasGlobal(`_SCRIPT_NAME`)) {
73
+ warnings.push({ message: `Global _SCRIPT_NAME is deprecated and will be removed in the next minor release of HSM, use _SCRIPT_SUBNAME instead` })
74
+
75
for (const referencePath of getReferencePathsToGlobal(`_SCRIPT_NAME`, program))
76
referencePath.replaceWith(t.stringLiteral(scriptName == true ? `$${uniqueId}$SCRIPT_NAME$` : scriptName))
77
0 commit comments