We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c99903e commit 2b6b031Copy full SHA for 2b6b031
src/plugin.ts
@@ -498,7 +498,7 @@ function insertCompiledTemplate<EnvSpecificOptions>(
498
let expression = t.callExpression(templateFactoryIdentifier, [templateExpression]);
499
500
let assignment = target.parent;
501
- let assignmentName: t.StringLiteral = t.stringLiteral(state.filename);
+ let assignmentName: t.StringLiteral | t.Identifier = t.identifier('undefined');
502
if (assignment.type === 'AssignmentExpression' && assignment.left.type === 'Identifier') {
503
assignmentName = t.stringLiteral(assignment.left.name);
504
}
0 commit comments