Alexander Akait
634d732803
feat(es/ast): Add raw
to Str
( #4071 )
2022-03-22 07:54:08 +00:00
OJ Kwon
f41a717c45
chore(plugin/runner): Update wasmer-*
( #4111 )
2022-03-22 05:14:20 +00:00
meskill
6ac7934017
fix(es/module/cjs): Fix conflict of a local export and exports-alls ( #4089 )
2022-03-19 09:56:14 +00:00
LongYinan
db9b988845
feat(node-swc): Add libc
field in Linux platform packages ( #4046 )
2022-03-16 18:58:24 +09:00
OJ Kwon
dab2002a2e
refactor(plugin/runner): Split modules and introduce feature flags ( #4035 )
2022-03-15 22:45:40 +00:00
Donny/강동윤
40b8a4e596
feat(common): Implement a pretty error reporter ( #3946 )
2022-03-13 19:07:18 +00:00
OJ Kwon
ffb2ee85e6
fix(node-swc): Correctly close trace spans after completion ( #3811 )
2022-03-02 10:03:00 +00:00
OJ Kwon
7fd0eeecb8
perf(plugin/runner): Optimize write_into_memory_view
( #3797 )
2022-03-01 08:20:56 +00:00
OJ Kwon
05aecf507e
fix(plugin): Fix caching of wasm modulee ( #3616 )
2022-02-18 05:50:51 +00:00
OJ Kwon
88e07b21d1
refactor(plugin): Remove direct dependency to once_cell
( #3582 )
2022-02-16 14:43:25 +09:00
OJ Kwon
a96217feaa
feat(plugin): Add PluginContext
( #3568 )
2022-02-15 08:03:17 +00:00
OJ Kwon
a4d914dab5
chore(build): Remove version pinning of parking_lot_core
( #3537 )
2022-02-12 14:24:49 +09:00
OJ Kwon
6ed089e1cf
feat(cli): Add a command for scaffolding a new plugin ( #3536 )
2022-02-12 13:48:40 +09:00
OJ Kwon
bc250262f2
feat(plugin): implement proxy for Mark
and SyntaxContext
( #3511 )
2022-02-10 06:57:42 +00:00
OJ Kwon
494b4c8203
feat(swc/plugin): Implement proxy for Mark::fresh
( #3492 )
2022-02-09 13:56:39 +09:00
OJ Kwon
d473a65976
feat(plugin): Support global HANDLER
in the plugin context ( #3478 )
2022-02-08 14:06:10 +09:00
OJ Kwon
a8debc17f6
feat(plugin): Pass host context to plugins for diagnostics emission ( #3359 )
2022-01-25 08:13:39 +00:00
OJ Kwon
438649818f
refactor(plugin): Remove multivalue polyfill ( #3346 )
2022-01-24 15:13:30 +09:00
OJ Kwon
7ba8a83881
test(plugin/runner): Pin dependencies for the integration test ( #3306 )
2022-01-19 05:01:45 +00:00
OJ Kwon
c6ffdc8717
feat(plugin): Add PluginError
( #3300 )
2022-01-18 12:26:04 +09:00
OJ Kwon
66d1a92635
feat(plugin/runner): Free allocated memory on errors ( #3270 )
2022-01-15 05:10:19 +00:00
OJ Kwon
a4c497464d
feat(plugin/runnner): Support wasm32-wasi
targets ( #3271 )
2022-01-15 04:40:00 +00:00
OJ Kwon
432d5d3fb7
feat(plugin/macro): Add safe API for plugins based on a proc-macro ( #3240 )
2022-01-12 09:32:52 +00: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
Austaras
f58b50bea7
refactor(es/ast): Change types of member-like expressions ( #3178 )
...
swc_ecma_ast:
- Split `MemberExpr` into `MemberExpr` and `SuperPropExpr`.
- Use `Box<Expr>` for `MemberExpr.obj`.
- Use ad-hoc type for `MemberExpr.prop`.
- Use ad-hoc type for `SuperPropExpr.prop`.
- Use `Callee` instead of `ExprOrSpread` for `CallExpr`.
- Simplify types for meta property expressions.
2022-01-10 13:54:42 +00:00
OJ Kwon
7e7421ea52
feat(plugin): Perform actual transforms in plugins ( #3220 )
2022-01-10 21:34:16 +09:00
OJ Kwon
c9ded9b720
feat(plugin): Allow multi-value for the plugin signature ( #3216 )
2022-01-09 15:02:56 +09: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
Donny/강동윤
91ef3cc16e
feat(plugin): Enable plugin support under experimental flag ( #2894 )
...
swc_plugin_runner:
- Add plugin resolver.
- Implement cache for resolver.
- Add some integration tests.
swc:
- Add a cargo feature named `plugin`.
- Add an experimental option for plugins.
node:
- Enable `plugin`.
- Add some integration tests.
2021-11-28 17:02:14 +09:00