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.
1 parent 8cebc40 commit 969d174Copy full SHA for 969d174
api/src/bundler/plugins/remark-undeclared-variables.ts
@@ -36,11 +36,8 @@ export default function remarkUndeclaredVariables(): (ast: Node) => void {
36
}
37
38
39
- const undeclared: string[] = [];
40
-
41
function visitorForUndeclared(node: UnDeclaredNode) {
42
- if (!declared.includes(node.value)) {
43
- undeclared.push(node.value);
+ if (node.value && !declared.includes(node.value)) {
44
node.type = 'text';
45
node.data = undefined;
46
node.value = `\{${node.value}\}`;
0 commit comments