Skip to content

Commit

Permalink
fix: server/client static printing
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanPiercey committed Dec 11, 2024
1 parent 35d5b75 commit efa2260
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ export const printers: Record<string, Printer<types.Node>> = {
];
case "MarkoScriptlet": {
const bodyDocs: Doc = [];
const prefix = node.static ? "static" : "$";
const prefix = node.static ? node.target || "static" : "$";
path.each((childPath) => {
const childNode = childPath.getNode() as types.Statement;
if (childNode && childNode.type !== "EmptyStatement") {
Expand Down

0 comments on commit efa2260

Please sign in to comment.