Commit Graph

939 Commits

Author SHA1 Message Date
SWC Bot
ed9a4ae5bc chore: Publish crates 2023-06-27 15:25:59 +00:00
SWC Bot
7f2ace5d3f chore: Publish crates 2023-06-27 02:16:08 +00:00
SWC Bot
b4ae28b053 chore: Publish crates 2023-06-26 04:02:12 +00:00
SWC Bot
fcd650c0e6 chore: Publish crates 2023-06-24 01:30:47 +00:00
SWC Bot
4efefb0f4e chore: Publish crates 2023-06-23 02:28:10 +00:00
SWC Bot
8c1436aaf5 chore: Publish crates 2023-06-22 13:40:52 +00:00
SWC Bot
33355cf707 chore: Publish crates 2023-06-22 07:43:38 +00:00
Donny/강동윤
d12dc70c91
build(cargo): Update deps (#7564) 2023-06-22 07:40:41 +00:00
SWC Bot
f9c5265bde chore: Publish crates 2023-06-21 15:44:11 +00:00
SWC Bot
c9f2838071 chore: Publish crates 2023-06-21 09:40:25 +00:00
SWC Bot
690ca6c8e1 chore: Publish crates 2023-06-21 07:27:39 +00:00
SWC Bot
c023a03d7b chore: Publish crates 2023-06-21 03:18:22 +00:00
SWC Bot
8b765e6763 chore: Publish crates 2023-06-20 05:37:57 +00:00
SWC Bot
f27d6ea58c chore: Publish crates 2023-06-20 05:05:01 +00:00
SWC Bot
69b034931e chore: Publish crates 2023-06-20 04:14:44 +00:00
SWC Bot
fec056f5db chore: Publish crates 2023-06-20 03:21:20 +00:00
SWC Bot
17e339fc26 chore: Publish crates 2023-06-20 01:54:14 +00:00
SWC Bot
8f1c8ea9fa chore: Publish crates 2023-06-19 06:36:31 +00:00
SWC Bot
44aac8fe27 chore: Publish crates 2023-06-19 05:51:51 +00:00
SWC Bot
2669fc214a chore: Publish crates 2023-06-19 03:20:19 +00:00
SWC Bot
d38c40914e chore: Publish crates 2023-06-19 03:02:08 +00:00
SWC Bot
0859b76ed0 chore: Publish crates 2023-06-16 06:46:25 +00:00
SWC Bot
b9acc83fa7 chore: Publish crates 2023-06-16 02:59:35 +00:00
SWC Bot
39276402bf chore: Publish crates 2023-06-14 05:01:49 +00:00
SWC Bot
db85bf3ee2 chore: Publish crates 2023-06-13 16:14:41 +00:00
SWC Bot
275db1baec chore: Publish crates 2023-06-13 03:39:28 +00:00
SWC Bot
08574e690b chore: Publish crates 2023-06-12 08:04:50 +00:00
SWC Bot
96895b1f3f chore: Publish crates 2023-06-12 06:49:35 +00:00
SWC Bot
d8f5158963 chore: Publish crates 2023-06-12 02:24:36 +00:00
SWC Bot
cea1237c5e chore: Publish crates 2023-06-12 01:39:32 +00:00
SWC Bot
b46bcf3f50 chore: Publish crates 2023-06-08 05:08:56 +00:00
SWC Bot
37634a758d chore: Publish crates 2023-06-08 04:15:29 +00:00
SWC Bot
3fe1236fe0 chore: Publish crates 2023-06-08 03:28:07 +00:00
SWC Bot
eeac6fa68a chore: Publish crates 2023-06-08 02:21:20 +00:00
OJ Kwon
73929fc43c
feat(plugin/runner): Support shared wasix runtime (#7504) 2023-06-08 02:19:07 +00:00
SWC Bot
89bee900e4 chore: Publish crates 2023-06-07 05:10:31 +00:00
SWC Bot
f634c3ad2f chore: Publish crates 2023-06-07 04:25:48 +00:00
SWC Bot
b6b4b0fd2e chore: Publish crates 2023-06-07 03:03:16 +00:00
SWC Bot
61dc611da3 chore: Publish crates 2023-06-05 04:47:07 +00:00
SWC Bot
47dc78f607 chore: Publish crates 2023-06-05 04:06:15 +00:00
SWC Bot
9de08611e1 chore: Publish crates 2023-06-02 15:24:25 +00:00
SWC Bot
d6bbbc332d chore: Publish crates 2023-05-31 01:59:26 +00:00
SWC Bot
a63905aa2c chore: Publish crates 2023-05-30 05:18:06 +00:00
SWC Bot
076b4d4023 chore: Publish crates 2023-05-30 03:24:10 +00:00
SWC Bot
81a413b332 chore: Publish crates 2023-05-28 14:12:53 +00:00
SWC Bot
dcda6498f3 chore: Publish crates 2023-05-28 13:29:30 +00:00
SWC Bot
15217a1f9e chore: Publish crates 2023-05-25 05:40:33 +00:00
SWC Bot
a85816d505 chore: Publish crates 2023-05-25 04:54:11 +00:00
SWC Bot
8d52500a9a chore: Publish crates 2023-05-25 04:00:53 +00:00
SWC Bot
1b5aa4a09b chore: Publish crates 2023-05-25 02:17:22 +00:00
SWC Bot
6c3ff01a53 chore: Publish crates 2023-05-24 07:48:00 +00:00
SWC Bot
c1f2b4a09f chore: Publish crates 2023-05-24 06:59:37 +00:00
SWC Bot
b95cd8444e chore: Publish crates 2023-05-24 06:27:35 +00:00
SWC Bot
f9f0cc2380 chore: Publish crates 2023-05-24 05:44:06 +00:00
SWC Bot
c14306c914 chore: Publish crates 2023-05-24 04:52:50 +00:00
SWC Bot
552bc0ba18 chore: Publish crates 2023-05-23 07:16:28 +00:00
SWC Bot
8872b41272 chore: Publish crates 2023-05-23 06:25:54 +00:00
SWC Bot
47114702ef chore: Publish crates 2023-05-23 05:30:42 +00:00
SWC Bot
ed9d316833 chore: Publish crates 2023-05-22 05:29:02 +00:00
SWC Bot
7964e1cb78 chore: Publish crates 2023-05-22 04:09:40 +00:00
OJ Kwon
cfdd407896
refactor(swc_core): Make common_plugin_transform agnostic to mode (#7422) 2023-05-22 04:07:55 +00:00
SWC Bot
12b966ea21 chore: Publish crates 2023-05-22 03:23:50 +00:00
SWC Bot
344a6ea7be chore: Publish crates 2023-05-20 04:47:53 +00:00
SWC Bot
920013511b chore: Publish crates 2023-05-20 04:00:44 +00:00
SWC Bot
b2c9bb47a0 chore: Publish crates 2023-05-19 04:37:45 +00:00
SWC Bot
135c4fd16b chore: Publish crates 2023-05-18 08:20:26 +00:00
SWC Bot
9440f4b196 chore: Publish crates 2023-05-18 07:08:08 +00:00
OJ Kwon
ac5ab607c9
refactor(plugin/runner): Revise cache, module loading (#7408)
**Description:**

One of the oversight around design of `TransformExecutor` is
encapsulating plugin module logic. It has access to the cache and do its
own loading & storing. This means consumer of plugin runner have tricky
challenge to control its caching system. First, there is no way to
escape how swc_plugin_runner controls cache and cannot synchronize into
their own, also depends on the usecases cannot control the features they
want to opt in: for example, there's no way one interface uses in-memory
cache, and another uses filesystem since it is compile time configured
singleton.

PR revisits overall design of TransformExecutor: now it accepts a tratir
`PluginModuleBytes`, which abstracts any kind of bytes we are dealing
with, such as raw file slice or serialized `wasmer::Module`. Cache
instantiation and managing is now bubbled up to the application level
(`swc` in here), so if someone wants non-singleton caching or integrate
into their own caching system it can be customized.

Lastly, deprecated `memory_cache` feature and only exposes
`filesystem_cache`. Cache implementation uses in-memory is always
available, and can opt in filesystem cache where it's supported.


**BREAKING CHANGE:**

This is clearly breaking changes for the consumers of swc_core. for the
@swc/core, this PR takes care of necessary changes. I'll work on
next-swc changes later once we have new @swc/core version with this
changes.
2023-05-18 07:05:39 +00:00
SWC Bot
31d7b88555 chore: Publish crates 2023-05-18 01:21:08 +00:00
SWC Bot
a2a544a0ae chore: Publish crates 2023-05-17 13:12:20 +00:00
SWC Bot
c520e7469e chore: Publish crates 2023-05-17 06:17:15 +00:00
SWC Bot
8052d4dabd chore: Publish crates 2023-05-17 04:53:45 +00:00
SWC Bot
da0c612d85 chore: Publish crates 2023-05-16 05:18:57 +00:00
SWC Bot
d3db7edd51 chore: Publish crates 2023-05-16 04:14:36 +00:00
SWC Bot
a05e28906b chore: Publish crates 2023-05-15 04:14:42 +00:00
SWC Bot
5e3d156aca chore: Publish crates 2023-05-15 03:20:03 +00:00
SWC Bot
5d30437206 chore: Publish crates 2023-05-15 02:27:59 +00:00
SWC Bot
a2577adffa chore: Publish crates 2023-05-14 06:08:33 +00:00
OJ Kwon
e3868a7e00
feat(swc_core): Allow native env plugin to use memory cache (#7390)
**Description:**

I just realized there could be some case who'll want plugin in native env, but without filesystem cache. If there's a custom cache implementation, it'll make a conflict to swc's caching mechanism since swc does not expose any interface to the its cache.

PR takes simple approach to expose another feature to opt in native env with memory cache for those case. Ideally we should make `plugin_transform_host_native` to not to opt-in any cache, and then make `swc_plugin_runner` to run without any cache implementation - but that'll be a breaking changes with few more involved changes.
2023-05-14 06:06:24 +00:00
SWC Bot
a71d5b2180 chore: Publish crates 2023-05-14 05:23:11 +00:00
SWC Bot
e88ae37a0c chore: Publish crates 2023-05-12 00:47:49 +00:00
SWC Bot
7655aaa42a chore: Publish crates 2023-05-11 14:02:24 +00:00
SWC Bot
65785bdf21 chore: Publish crates 2023-05-10 04:19:21 +00:00
SWC Bot
6432e1f5c5 chore: Publish crates 2023-05-10 03:33:12 +00:00
SWC Bot
e1c9182e1c chore: Publish crates 2023-05-09 05:47:00 +00:00
SWC Bot
7fc9b00443 chore: Publish crates 2023-05-08 03:40:27 +00:00
SWC Bot
aef5ac4812 chore: Publish crates 2023-05-06 03:56:38 +00:00
SWC Bot
5e595e7644 chore: Publish crates 2023-05-05 07:28:53 +00:00
SWC Bot
e9f3371c5f chore: Publish crates 2023-05-02 02:13:33 +00:00
SWC Bot
11c1f2c7b3 chore: Publish crates 2023-04-30 12:45:00 +00:00
SWC Bot
4ad18beca3 chore: Publish crates 2023-04-29 13:48:25 +00:00
SWC Bot
767284e27f chore: Publish crates 2023-04-29 13:28:01 +00:00
SWC Bot
b80ceaed03 chore: Publish crates 2023-04-29 13:21:14 +00:00
SWC Bot
098b9387c1 chore: Publish crates 2023-04-29 13:00:37 +00:00
SWC Bot
2c7f94f1ac chore: Publish crates 2023-04-29 11:16:12 +00:00
SWC Bot
e7911ee594 chore: Publish crates 2023-04-26 01:25:19 +00:00
SWC Bot
d67f9bfd75 chore: Publish crates 2023-04-25 10:06:32 +00:00
SWC Bot
923ed13b6a chore: Publish crates 2023-04-24 09:25:42 +00:00
SWC Bot
51f3840609 chore: Publish crates 2023-04-24 05:25:39 +00:00
SWC Bot
5400648de8 chore: Publish crates 2023-04-24 04:17:24 +00:00
SWC Bot
f2a38e808a chore: Publish crates 2023-04-21 06:13:37 +00:00
SWC Bot
c8e6774070 chore: Publish crates 2023-04-20 08:28:29 +00:00
SWC Bot
af8e158948 chore: Publish crates 2023-04-20 07:35:26 +00:00
SWC Bot
7fd1e93434 chore: Publish crates 2023-04-19 21:54:39 +00:00
SWC Bot
095e0ad034 chore: Publish crates 2023-04-19 12:30:15 +00:00
SWC Bot
0e4d764f90 chore: Publish crates 2023-04-19 11:27:00 +00:00
SWC Bot
0d4fe74ab5 chore: Publish crates 2023-04-19 07:24:45 +00:00
SWC Bot
b68466c0d9 chore: Publish crates 2023-04-19 06:26:19 +00:00
SWC Bot
1c530b8919 chore: Publish crates 2023-04-18 02:46:59 +00:00
SWC Bot
f7355420dd chore: Publish crates 2023-04-15 14:52:40 +00:00
SWC Bot
d90d14fc23 chore: Publish crates 2023-04-15 13:58:51 +00:00
SWC Bot
9e752bd1aa chore: Publish crates 2023-04-15 04:21:44 +00:00
SWC Bot
42c4b07f34 chore: Publish crates 2023-04-15 03:29:04 +00:00
SWC Bot
db9320c051 chore: Publish crates 2023-04-15 02:19:38 +00:00
SWC Bot
cfc53fe0df chore: Publish crates 2023-04-15 00:36:58 +00:00
SWC Bot
5f0660667f chore: Publish crates 2023-04-14 23:50:14 +00:00
SWC Bot
e6cffb7581 chore: Publish crates 2023-04-13 08:41:47 +00:00
SWC Bot
fb9eed24ad chore: Publish crates 2023-04-13 07:00:40 +00:00
SWC Bot
8fc527343b chore: Publish crates 2023-04-13 05:52:04 +00:00
OJ Kwon
6bd58cbcfd
refactor(plugin): Remove bytecheck flag (#7256) 2023-04-13 05:49:58 +00:00
SWC Bot
604667d522 chore: Publish crates 2023-04-13 03:25:23 +00:00
SWC Bot
dd56100585 chore: Publish crates 2023-04-12 13:23:23 +00:00
SWC Bot
8e5cb60183 chore: Publish crates 2023-04-12 12:33:03 +00:00
SWC Bot
d4782ee526 chore: Publish crates 2023-04-12 11:46:53 +00:00
SWC Bot
f31f67c7fb chore: Publish crates 2023-04-11 07:05:27 +00:00
SWC Bot
33ff2ba7c4 chore: Publish crates 2023-04-11 04:50:23 +00:00
SWC Bot
a0e193d177 chore: Publish crates 2023-04-11 03:47:41 +00:00
SWC Bot
80e125a386 chore: Publish crates 2023-04-11 02:13:17 +00:00
SWC Bot
2a662350e6 chore: Publish crates 2023-04-10 10:47:52 +00:00
SWC Bot
c06690ec9c chore: Publish crates 2023-04-10 09:31:19 +00:00
SWC Bot
ab9e793fa8 chore: Publish crates 2023-04-10 08:48:13 +00:00
SWC Bot
8741fdb126 chore: Publish crates 2023-04-10 04:55:59 +00:00
SWC Bot
2204b7809b chore: Publish crates 2023-04-10 03:42:39 +00:00
OJ Kwon
56bdacc72d
feat(plugin/runner): Update wasmer to v3 (#7197)
**Description:**

This PR reattempts https://github.com/swc-project/swc/pull/5456.

Most of the changes are for the breaking changes of wasmer@3, as well as enabling rkyv's strict mode (https://github.com/swc-project/swc/pull/6922). This could not be seperated since wasmer@3 enables strict mode by default without a way to turn it off.

There are a couple of changes worth noting:

- Disabling in-memory module lookup: https://github.com/swc-project/swc/pull/7197/files#diff-3bda5def6ce2b7553c3b3a5ad241c0bdb7021e67b7de1e594df4cd5a54d403b3R154-R159
- Disabling plugin_runner in bindings_wasm: https://github.com/swc-project/swc/pull/7197/files#diff-dc3ded556a1fd709a129acd588e5eda651b842c6acc3f5340d40088a1f927facR310-R312
- Skipping plugin compat test: https://github.com/swc-project/swc/pull/7197/files#diff-531197dfcefba05faca53f0cf442ecc2dc6b59d5ead01979f5ffb912aa36249aR64-R66
2023-04-10 03:40:25 +00:00
SWC Bot
bb80c659b3 chore: Publish crates 2023-04-07 01:46:34 +00:00
SWC Bot
68751600ae chore: Publish crates 2023-04-06 14:47:27 +00:00
SWC Bot
4b9cfbb4dd chore: Publish crates 2023-04-06 13:48:37 +00:00
SWC Bot
150e54dc3a chore: Publish crates 2023-04-06 08:56:53 +00:00
SWC Bot
c6b28f91cc chore: Publish crates 2023-04-05 05:17:51 +00:00
SWC Bot
a22a8a70ed chore: Publish crates 2023-04-05 04:37:50 +00:00
SWC Bot
c8fca9a054 chore: Publish crates 2023-04-04 03:07:51 +00:00
SWC Bot
06bacca90c chore: Publish crates 2023-04-04 02:24:40 +00:00
Adam Jahn
bfe654438f
fix(swc_core): Fix a feature name (#7198) 2023-04-04 02:22:47 +00:00
SWC Bot
ad7daddeb8 chore: Publish crates 2023-04-04 01:50:35 +00:00
SWC Bot
ae2362e97b chore: Publish crates 2023-04-03 08:15:39 +00:00
SWC Bot
a679dbe9aa chore: Publish crates 2023-04-02 22:16:24 +00:00
SWC Bot
48843455fa chore: Publish crates 2023-04-02 03:49:33 +00:00
SWC Bot
f73f96dd94 chore: Publish crates 2023-04-02 00:24:57 +00:00
SWC Bot
fa153348c9 chore: Publish crates 2023-04-01 06:17:38 +00:00
SWC Bot
b7366fd5ce chore: Publish crates 2023-04-01 05:42:08 +00:00
SWC Bot
b94fbed4c9 chore: Publish crates 2023-03-31 06:17:53 +00:00
SWC Bot
7d69b79a9e chore: Publish crates 2023-03-31 03:23:35 +00:00
SWC Bot
bf1e55d27b chore: Publish crates 2023-03-30 08:48:31 +00:00
SWC Bot
6a015550ba chore: Publish crates 2023-03-30 08:40:29 +00:00
SWC Bot
b1fb6b655f chore: Publish crates 2023-03-30 08:08:20 +00:00
SWC Bot
44062d6fa5 chore: Publish crates 2023-03-29 08:50:54 +00:00
SWC Bot
d74103739a chore: Publish crates 2023-03-29 06:26:30 +00:00
SWC Bot
fca18b2c6b chore: Publish crates 2023-03-28 08:00:32 +00:00
SWC Bot
03f7a2d8d7 chore: Publish crates 2023-03-27 06:41:36 +00:00
SWC Bot
47f15f9f28 chore: Publish crates 2023-03-27 06:04:11 +00:00
SWC Bot
8fe52a12b3 chore: Publish crates 2023-03-27 04:31:35 +00:00
Donny/강동윤
30bc086052
refactor(ast): Make serde optional (#7138)
**Description:**

Turbopack does not use `serde` of swc AST types.
2023-03-27 13:28:42 +09:00
SWC Bot
6635d54128 chore: Publish crates 2023-03-24 02:42:16 +00:00
SWC Bot
4eef5532a4 chore: Publish crates 2023-03-23 09:42:52 +00:00
SWC Bot
b178ff5661 chore: Publish crates 2023-03-23 09:19:33 +00:00
SWC Bot
d1ae6bb3d9 chore: Publish crates 2023-03-23 09:14:02 +00:00
SWC Bot
42f71431bf chore: Publish crates 2023-03-23 05:19:01 +00:00
SWC Bot
e77bc0a62f chore: Publish crates 2023-03-23 04:39:01 +00:00
SWC Bot
f81ac50c2a chore: Publish crates 2023-03-23 04:00:14 +00:00
SWC Bot
aaaa9caafc chore: Publish crates 2023-03-22 12:27:14 +00:00
SWC Bot
0195f536ef chore: Publish crates 2023-03-22 11:50:07 +00:00
SWC Bot
8c5a1f140a chore: Publish crates 2023-03-22 06:33:46 +00:00
SWC Bot
e37666bb6e chore: Publish crates 2023-03-22 02:26:23 +00:00
SWC Bot
1aa9a98b27 chore: Publish crates 2023-03-21 09:29:42 +00:00
SWC Bot
212af9b0a7 chore: Publish crates 2023-03-21 08:48:30 +00:00
SWC Bot
cda09e44c3 chore: Publish crates 2023-03-21 07:21:46 +00:00
SWC Bot
6e9be45ab9 chore: Publish crates 2023-03-21 02:59:40 +00:00
SWC Bot
3315419038 chore: Publish crates 2023-03-20 14:17:19 +00:00
SWC Bot
f40175b960 chore: Publish crates 2023-03-20 05:30:14 +00:00
SWC Bot
85c51a81e7 chore: Publish crates 2023-03-20 02:03:09 +00:00
SWC Bot
d6cc123d62 chore: Publish crates 2023-03-19 02:59:07 +00:00
SWC Bot
17356bca25 chore: Publish crates 2023-03-17 03:24:05 +00:00
SWC Bot
8902741084 chore: Publish crates 2023-03-17 02:40:31 +00:00
SWC Bot
32b4d7b8ad chore: Publish crates 2023-03-16 09:40:18 +00:00
SWC Bot
5f4fea2a5b chore: Publish crates 2023-03-16 03:37:09 +00:00
SWC Bot
60ccdab60e chore: Publish crates 2023-03-16 02:20:24 +00:00
SWC Bot
b14e6b9e54 chore: Publish crates 2023-03-15 02:33:33 +00:00
SWC Bot
afe5c70f44 chore: Publish crates 2023-03-14 01:21:14 +00:00
SWC Bot
6bf5f03884 chore: Publish crates 2023-03-13 08:34:46 +00:00
SWC Bot
8ab307c79a chore: Publish crates 2023-03-13 04:03:35 +00:00
SWC Bot
3da6d18d47 chore: Publish crates 2023-03-13 03:27:50 +00:00
SWC Bot
45fba897c6 chore: Publish crates 2023-03-13 01:59:04 +00:00
SWC Bot
136c498c80 chore: Publish crates 2023-03-12 04:52:09 +00:00
SWC Bot
4015714633 chore: Publish crates 2023-03-12 03:57:57 +00:00
SWC Bot
2486e6b6bf chore: Publish crates 2023-03-11 12:14:51 +00:00
SWC Bot
fa627e178a chore: Publish crates 2023-03-11 10:43:53 +00:00
SWC Bot
0b0e61beb6 chore: Publish crates 2023-03-11 03:44:48 +00:00
SWC Bot
d868434845 chore: Publish crates 2023-03-11 02:56:04 +00:00
SWC Bot
fd26f467a1 chore: Publish crates 2023-03-11 00:32:35 +00:00
SWC Bot
d4ebb5e6ef chore: Publish crates 2023-03-10 06:28:00 +00:00