OJ Kwon
d473a65976
feat(plugin): Support global HANDLER
in the plugin context ( #3478 )
2022-02-08 14:06:10 +09:00
Donny/강동윤
ea8dfd872c
fix(es/codegen): Fix bugs ( #3436 )
...
swc_ecma_codegen:
- Emit `;` after do-while statemnts. (#3426 )
- Don't emit two dots for minified numeric literals. (#3428 )
- Handle semicolons correctly. (#3420 )
2022-02-03 15:19:13 +09:00
Donny/강동윤
78e83a386b
chore(repo): Add clippy
to git push hook ( #3383 )
2022-01-28 00:22:43 +09:00
OJ Kwon
a8debc17f6
feat(plugin): Pass host context to plugins for diagnostics emission ( #3359 )
2022-01-25 08:13:39 +00:00
LongYinan
9608605772
build(node-swc): Fix GLIBC < 2.18 compatible issues and android arm binary loading issue ( #3314 )
2022-01-20 02:21:24 +00:00
OJ Kwon
c6ffdc8717
feat(plugin): Add PluginError
( #3300 )
2022-01-18 12:26:04 +09:00
asquared31415
641265b147
fix(common): Use siphasher
directly and upgrade transitive dependencies to avoid UB ( #3299 )
2022-01-18 11:29:53 +09:00
Donny/강동윤
357a350390
refactor(*): Cleanup ( #3274 )
2022-01-15 16:43:34 +09:00
Donny/강동윤
15b604b6d6
refactor(*): Fix some clippy warnings ( #3257 )
2022-01-14 07:20:45 +09:00
Donny/강동윤
978de5943e
chore(ci): Configure clippy
( #3250 )
2022-01-13 23:06:11 +09:00
OJ Kwon
a2f2b5ac89
feat(plugin): Don't serialize/deserialize needlessly ( #3227 )
...
swc_common:
- Add `Serialized`.
swc_plugin_runner:
- Accept `Serialized` instead of `Program`.
- Pass `Serialized` from previous plugin instead of deserializing it.
2022-01-11 10:11:04 +00:00
OJ Kwon
92de2c7884
feat(plugin): Pass serialized ast to a wasm file ( #3199 )
...
swc_common:
- Use correct cargo feature for plugin apis.
swc_plugin:
- Add hidden functions required for memory operations from host.
swc_plugin_runner:
- Pass serialized AST to a wasm file.
2022-01-07 15:13:46 +09:00
OJ Kwon
32d3342283
refactor(plugin): Remove codes related to the plugin system based on abi_stable
( #3188 )
2022-01-04 10:26:17 +00:00
Donny/강동윤
bf751cb690
feat(es/ast): Add rkyv
support ( #3166 )
...
ast_node:
- `#[ast_node]`: Add support for `rkyv`.
swc_common:
- Add a feature flag for `rkyv`.
swc_ecma_ast:
- Add a feature flag for `rkyv`.
2022-01-02 16:23:37 +09:00
Donny/강동윤
7a83c0cb57
perf(es/ast/serde): Make deserialization faster ( #3160 )
...
ast_node:
- Improve deserialization of enums.
swc_css_ast:
- Fix a compilation issue.
swc_ecma_ast:
- Update `serde`.
swc_ecma_parser:
- Fix a compilation issue.
swc_estree_ast:
- Fix serialization.
2022-01-02 12:49:09 +09:00
Donny/강동윤
b4d95b44a7
perf(es/parser): Improve performance ( #3059 )
...
swc_common:
- Optimize `StringInput`.
swc_ecma_parser:
- Optimize `skip_space`.
- Remove useless `.clone()`.
2021-12-19 00:18:00 +09:00
Donny/강동윤
f5af22ef71
chore: Document features ( #2890 )
2021-11-27 16:55:42 +09:00
Donny/강동윤
4f70ee6d98
refactor: Flatten more packages ( #2706 )
2021-11-10 16:39:01 +09:00