Skip to content

Commit

Permalink
fix: remove usage of Array.prototype.toReversed
Browse files Browse the repository at this point in the history
  • Loading branch information
KermanX committed Jul 25, 2024
1 parent a46aea8 commit cd7f926
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/slidev/node/setups/transformers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default async function setupTransformers(roots: string[]) {
postCodeblock: [],
post: [],
}
for (const r of returns.toReversed()) {
for (const r of [...returns].reverse()) {
if (r.pre)
result.pre.push(...r.pre)
if (r.preCodeblock)
Expand Down

0 comments on commit cd7f926

Please sign in to comment.