OJ Kwon
56ac9eb6b3
feat(common): Enable bytecheck for missing structs ( #7465 )
2023-05-30 05:15:46 +00:00
OJ Kwon
bba1fad35c
feat(plugin): Add versioned wrapper struct ( #7382 )
2023-05-15 03:17:31 +00:00
OJ Kwon
d2c1f45f5a
feat(plugin): Enable bytecheck ( #7280 )
...
**Description:**
Second attempt to enable bytecheck. This PR does not have versioned struct yet, just enabling bytecheck wherever possible. Also, it is for the ast only yet, so transform metadata and others might need this later.
PR seems to be passing all the ci, but as we've experienced before, there might be some unexpected outcomes with the release. Maybe better to hold this until clear https://github.com/swc-project/swc/issues/7238 , then land as a separate release.
2023-05-06 03:54:25 +00:00
OJ Kwon
4e278befcf
build(cargo): Update wasmer
to v3.3
( #7352 )
2023-05-05 07:26:38 +00:00
OJ Kwon
577f81ec40
fix(common): Workaround the Arc
and rkyv
issue ( #7321 )
...
**Description:**
Attempt to workaround #7238 .
Originally I thought this is related with oom or memory layout, then realized actual deserialization error occurs in weird position - it tries to deserialize BytePos (which is obvious type) and it fails. It made me think maybe a property next to the struct layout have some unexpected behavior, notably Arc<String>.
PR applies same workaround as Atom does, and it seems to at least pass swc-coverage-instrument's usecases. May need bit more verification with other plugins to see if we can call this out as reliable workaround.
2023-04-24 09:23:31 +00:00
OJ Kwon
6bd58cbcfd
refactor(plugin): Remove bytecheck
flag ( #7256 )
2023-04-13 05:49:58 +00:00
OJ Kwon
efad714983
feat(plugin): Enable validation ( #7250 )
2023-04-12 12:30:38 +00:00
Donny/강동윤
dfe1a3f496
refactor(es): Remove needless build scripts to reduce compile time ( #7129 )
2023-03-23 05:15:59 +00:00
Donny/강동윤
99d48e305e
fix(plugin): Make span_to_source
use dedicated function ( #6853 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6852 .
- Closes https://github.com/swc-project/swc/issues/6404 .
2023-01-26 02:09:36 +00:00
OJ Kwon
f14b156a60
fix(es/plugins/proxy): Adjust import with compile time flags ( #6451 )
2022-11-16 02:55:03 +00:00
OJ Kwon
7a1c2a1e2c
refactor(es/plugins): Simplify read_result_*
( #6426 )
2022-11-13 23:17:41 +00:00
Andreas
b6c1cc49e1
fix(es/plugin): Print more details on pointer conversion failures ( #6378 )
2022-11-11 22:47:44 +00:00
Donny/강동윤
3c3529cb84
build(rustc): Update rustc ( #5943 )
...
**Description:**
This PR updates rustc, and fix some performance bugs of `swc_common`.
2022-09-24 03:33:47 +00:00
OJ Kwon
1ba151fe95
feat(swc_core): Enable bytecheck
for plugin ( #5878 )
2022-09-16 11:43:59 +09:00
OJ Kwon
092b7281d0
refactor(es/ast): Apply rkyv-bytecheck flag ( #5866 )
2022-09-15 05:20:46 +00:00
Donny/강동윤
4cde553811
fix(es/ast): Revert #5798 ( #5798 ) ( #5855 )
...
This reverts commit 37f42df877
.
2022-09-14 16:52:46 +09:00
OJ Kwon
37f42df877
refactor(es/ast): Apply rkyv-bytecheck flag ( #5798 )
...
**Description:**
This PR updates ast* related package's rkyv bytecheck flags.
2022-09-14 16:16:18 +09:00
Donny/강동윤
2bbc9bd73b
refactor(es/plugin): Fix lints ( #5801 )
2022-09-10 12:50:54 +09:00
OJ Kwon
6f19f8902f
refactor(swc_core): enable bytechecked flag ( #5792 )
...
**Description:**
Another update to enable bytecheck rkyv feature flag.
Our dep tree is quite tangled with implicit enable (plugin -> rkyv). PR tries to detach some of it while trying to preserve existing behavior as much as it can.
2022-09-09 08:05:51 +00:00
OJ Kwon
ca82f64b0e
fix(plugin/proxy): Fix a compilation attribute ( #5495 )
2022-08-15 07:59:25 +00:00
OJ Kwon
ff7f6f63f9
fix(es/plugin): Share SourceFile
for plugin transforms ( #5475 )
2022-08-15 00:45:19 +00:00
OJ Kwon
9d04f24c26
feat(node): Use published version of swc_core
for node binding ( #5481 )
2022-08-14 01:15:56 +00:00
OJ Kwon
d36e48efbf
build(plugin): Downgrade rkyv
( #5459 )
2022-08-12 14:04:05 +00:00
OJ Kwon
001607f341
feat(plugin): Add some tracing for plugin host ( #5438 )
2022-08-11 02:01:58 +00:00
OJ Kwon
2b5080e291
fix(es): Temporarily disable bytecheck
( #5414 )
2022-08-08 02:58:08 +00:00
OJ Kwon
5a164bd137
feat(plugin): Make metadata api lazy ( #5310 )
2022-07-27 13:16:44 +09:00
OJ Kwon
e8214babf5
refactor(plugin): Refactor transform executor ( #5147 )
2022-07-08 06:02:42 +00:00
OJ Kwon
82fbe15a57
feat(plugin): Wrap serialized struct with a version ( #5128 )
2022-07-07 07:46:49 +00:00
OJ Kwon
2ba8b39fa0
refactor(common): Bikeshed plugin apis ( #5120 )
2022-07-06 04:42:00 +00:00
Donny/강동윤
2e139f1441
perf(atoms): More groundwork for replacing JsWord
with Atom
( #5064 )
2022-06-29 13:08:29 +09:00
OJ Kwon
e34a864390
feat(plugin): Add versioned wrapper struct ( #5062 )
2022-06-29 03:35:23 +00:00
Donny/강동윤
a9f91dc797
fix(es/resolver): Hoist namespaces ( #4902 )
2022-06-07 23:42:19 +00:00
OJ Kwon
6bc33cb042
feat(es/codegen): Support other source map implementations ( #4879 )
2022-06-05 14:40:55 +00:00
OJ Kwon
a937357d47
feat(plugin): Implement SourceMap.span_to_*
( #4781 )
2022-05-25 02:09:55 +00:00
OJ Kwon
3298cb7906
feat(plugin): Implement more SourceMap
apis ( #4769 )
2022-05-24 07:19:27 +00:00
Donny/강동윤
920d9a7678
fix(es/minifier): Fix handling of template literals ( #4563 )
2022-05-08 01:56:38 +09:00
OJ Kwon
10f903dd39
feat(plugin): Make plugin source map api use SourceMapper
( #4541 )
2022-05-06 07:11:00 +00:00
OJ Kwon
f06c862a9f
feat(plugin): Support lookup_char_pos
of SourceMap
( #4364 )
2022-04-19 14:26:28 +09:00
那里好脏不可以
37a8c90750
chore(*): Typo + fomatting ( #4304 )
2022-04-11 18:45:58 +00:00
OJ Kwon
cf7ca5076a
refactor(plugin/api): Expand the proxy crate ( #4290 )
2022-04-09 07:47:43 +00:00