Skip to content

Commit b35a79a

Browse files
chore(deps): update dependency @swc-next/parser to v0.5.0 (#612)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: neverland <chenjiahan.jait@bytedance.com>
1 parent c49c212 commit b35a79a

3 files changed

Lines changed: 72 additions & 70 deletions

File tree

‎packages/rstack/src/fmt/swcNextPlugin.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,8 @@ const parseWithOptions = (
484484
const result = parseWithSwcNext(text, {
485485
preserveParens: true,
486486
comments: 'flat',
487+
// Return diagnostics so they can be converted to Prettier-compatible errors.
488+
errorRecovery: true,
487489
...options,
488490
});
489491

‎pnpm-lock.yaml‎

Lines changed: 69 additions & 69 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎pnpm-workspace.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ catalog:
2929
'@rstest/adapter-rsbuild': '~0.12.5'
3030
'@rstest/adapter-rslib': '~0.12.5'
3131
'@rstest/core': '~0.12.6'
32-
'@swc-next/parser': '0.4.1'
32+
'@swc-next/parser': '0.5.0'
3333
'@testing-library/dom': '^10.4.2'
3434
'@testing-library/jest-dom': '^7.0.1'
3535
'@testing-library/react': '^16.3.3'

0 commit comments

Comments
 (0)