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_SUBNAME
_SCRIPT_NAME
1 parent 1d688c1 commit 071fa2bCopy full SHA for 071fa2b
src/processScript/transform.ts
@@ -73,6 +73,11 @@ export function transform(
73
referencePath.replaceWith(t.stringLiteral(scriptName == true ? `$${uniqueId}$SCRIPT_NAME$` : scriptName))
74
}
75
76
+ if (program.scope.hasGlobal(`_SCRIPT_SUBNAME`)) {
77
+ for (const referencePath of getReferencePathsToGlobal(`_SCRIPT_SUBNAME`, program))
78
+ referencePath.replaceWith(t.stringLiteral(scriptName == true ? `$${uniqueId}$SCRIPT_NAME$` : scriptName))
79
+ }
80
+
81
if (program.scope.hasGlobal(`_FULL_SCRIPT_NAME`)) {
82
for (const referencePath of getReferencePathsToGlobal(`_FULL_SCRIPT_NAME`, program)) {
83
if (scriptUser == true || scriptName == true)
0 commit comments