swc/common
Donny/강동윤 380722976a
feat(plugin): Proxy swc_common apis (#2646)
swc_common:
 - Add `Runtime` trait for plugin.
 - Implement `serde` for diagnostics.
 - Proxy diagnostics using `Runtime`.
 - Proxy `HygieneData::with` with `Runtime`.
 - Add implementation of `Runtime` with cargo feature `plugin-rt`.
 - Make `Runtime` implement `StableAbi`.

swc_plugin:
 - Move api code to `swc_plugin_api`.
 - Depend on `swc_common/plugin-mode`.
 - Configure `Runtime` before invoking custom transforms.
 - Use `bincode` for serde.

swc_plugin_runner:
 - Depend on `swc_common/plugin-rt`.
 - Pass `Runtime` implementation to the plugins.
 - Use `bincode` for serde.
2021-11-04 19:24:49 +09:00
..
benches perf(node/swc): Use mimalloc (#2068) 2021-08-13 18:39:13 +09:00
examples use 2018 edition syntax (#479) 2019-12-02 17:10:05 +09:00
src feat(plugin): Proxy swc_common apis (#2646) 2021-11-04 19:24:49 +09:00
tests feat(ast_node): Add #[ast_serde] (#1595) 2021-04-21 09:11:50 +00:00
Cargo.toml feat(plugin): Proxy swc_common apis (#2646) 2021-11-04 19:24:49 +09:00