Skip to content

Commit 155f800

Browse files
committed
fix: support oxc-transform@0.42.0
1 parent 230ee58 commit 155f800

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
},
8484
"peerDependencies": {
8585
"@swc/core": "^1.6.6",
86-
"oxc-transform": ">=0.28.0",
86+
"oxc-transform": ">=0.42.0",
8787
"typescript": "^5.5.2"
8888
},
8989
"peerDependenciesMeta": {

src/core/transformer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export async function oxcTransform(
3232
return {
3333
...result,
3434
map: result.map?.mappings,
35+
errors: result.errors.map((error) => error.message),
3536
}
3637
}
3738

0 commit comments

Comments
 (0)