Boshen
e698418d1a
feat(napi/transform): align output SourceMap with Rollup's ExistingRawSourceMap ( #5657 )
...
closes #5578
2024-09-09 15:55:23 +00:00
Boshen
dc741e471f
chore: do not format napi generated files
2024-09-08 13:42:15 +08:00
Boshen
d00a1f6511
chore: use dprint to format js, json and markdown
2024-09-08 13:24:58 +08:00
underfin
aba9194ebc
feat(napi/transform): export react refresh options ( #5533 )
...
Co-authored-by: Boshen <boshenc@gmail.com>
2024-09-08 08:42:17 +08:00
Boshen
ea7a52f1b4
fix(napi/transform): fix test
2024-09-03 11:03:44 +08:00
Dunqing
0abfc5049f
feat(transformer/typescript): support rewrite_import_extensions option ( #5399 )
...
close : #5395
Babel only supports `rewrite`, we also support `remove`
2024-09-03 01:57:42 +00:00
Boshen
b1d0075359
feat(napi/transform)!: align output API sourceText -> code with babel ( #5398 )
...
And `sourceMap` -> `map`
closes #5397
2024-09-02 07:53:46 +00:00
dalaoshu
72740b3f78
feat(isolated_declaration): support sourcemap option ( #5170 )
...
closes #4313
2024-08-25 13:32:47 +08:00
Boshen
01d85de834
fix(napi/transform): update napi files
2024-08-06 19:35:58 +08:00
DonIsaac
9b51e045c7
refactor: overhaul napi transformer package ( #4592 )
...
## What This PR Does
- Support declaration emit with `transform()`
- Consolidate shared parsing and error reporting logic into a `TransformContext`
- Add JSDoc comments to options
I'm getting this package ready for consumption in [oxc-jest](https://github.com/oxc-project/oxc-jest ).
2024-08-06 01:14:10 +00:00
Boshen
27cbd551fb
chore: bump napi to v3 ( #4365 )
2024-07-19 14:06:33 +00:00
Boshen
725571aad1
feat(napi/transformer): add jsx option to force parsing with jsx ( #4133 )
...
To mimic the esbuild `loader=jsx` or babel `babel-plugin-syntax-jsx` behavior.
2024-07-10 11:12:10 +00:00
underfin
0b56d50899
chore(napi): make transformer options optional ( #3989 )
2024-07-01 16:45:00 +08:00
Boshen
e44963acda
Revert "chore(napi/transform): support wasm build ( #3933 )"
...
This reverts commit 3e9e4c9912 .
2024-06-30 22:04:36 +08:00
Dunqing
3e9e4c9912
chore(napi/transform): support wasm build ( #3933 )
...
~~Encountered the same problem as
https://github.com/oxc-project/oxc-resolver/issues/190 . Fixed in
napi@2.16.7, but oxc use `3.x`~~
Fixed in napi@3.0.0-alpha.3
2024-06-30 19:49:02 +08:00
underfin
d3cd3ea2de
feat: oxc transform binding ( #3896 )
...
closes #3877
---------
Co-authored-by: Boshen <boshenc@gmail.com>
2024-06-26 21:57:19 +08:00
Boshen
f42c325a06
refactor(napi): change "isolated declarations" to "transform" ( #3721 )
2024-06-17 14:09:18 +00:00