Skip to content

Commit 376e6d6

Browse files
attach remaining trailing comments to ast
1 parent ee098cc commit 376e6d6

File tree

1 file changed

+5
-0
lines changed
  • packages/svelte/scripts/process-messages

1 file changed

+5
-0
lines changed

packages/svelte/scripts/process-messages/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,11 @@ function transform(name, dest) {
127127
}
128128
});
129129

130+
if (comments.length > 0) {
131+
// @ts-expect-error
132+
(ast.trailingComments ||= []).push(...comments);
133+
}
134+
130135
const category = messages[name];
131136

132137
// find the `export function CODE` node

0 commit comments

Comments
 (0)