Commit Graph

3466 Commits

Author SHA1 Message Date
magic-akari
6a27a0ce88
fix(es/compat): Hoist env in function params (#4210) 2022-03-31 13:00:19 +00:00
SWC Bot
809c87e8b7 chore: Publish crates 2022-03-31 11:42:47 +00:00
Donny/강동윤
3b1da220e2
refactor(*): Remove fastmem (#4211) 2022-03-31 11:40:06 +00:00
SWC Bot
30742ae6e7 chore: Publish crates 2022-03-31 09:14:23 +00:00
Donny/강동윤
10718547e0
fix(es/minifier): Fix evaluation of IIFEs (#4207)
- We now remap parameters using a new syntax context. This is required because we may copy functions, and it can result in duplicated variables with respect to the span hygiene.
 - We now visit the sequence expression generated by inlining. This is to improve performance in some cases.
 - We now remove variables from variable statements if it's identical to a parameter declared in the function.
 - IIFE evaluation is now aware of `this` being different for member expressions.
 - We now have more logic for detecting simple functions.
2022-03-31 09:11:54 +00:00
SWC Bot
79866cf0d2 chore: Publish crates 2022-03-31 08:47:32 +00:00
OJ Kwon
536a190dc9
feat(plugin): Implement PoC of comments api (#4206) 2022-03-31 08:45:08 +00:00
SWC Bot
be9017dfe1 chore: Publish crates 2022-03-31 07:16:00 +00:00
OJ Kwon
eecda21d9a
fix(node-swc): Initialize custom trace subscriber only once (#4209) 2022-03-31 07:11:31 +00:00
SWC Bot
24ce355d77 chore: Publish crates 2022-03-31 00:56:42 +00:00
overlookmotel
073751f70d
fix(es/optimization): Support jsx in dce (#4203) 2022-03-31 00:54:20 +00:00
SWC Bot
30cde5b0eb chore: Publish crates 2022-03-30 23:37:49 +00:00
Donny/강동윤
11fe5fabd8
feat(es/minifier): Evaluate more iifes (#4200) 2022-03-30 23:35:30 +00:00
SWC Bot
c6a583741c chore: Publish crates 2022-03-30 22:53:40 +00:00
Donny/강동윤
1ad357cb32
feat(common/preset-env): Dedup arrayvec (#4201) 2022-03-30 22:50:11 +00:00
SWC Bot
19bc43f3ed chore: Publish crates 2022-03-30 22:03:54 +00:00
William Tetlow
99a0d34a1e
fix(es/parser): Fix parsing of an arrow and a conditional expression (#4199) 2022-03-30 22:01:31 +00:00
SWC Bot
cfed024514 chore: Publish crates 2022-03-30 21:19:05 +00:00
Austaras
c946236fcc
fix(es/compat): Fix label handling of block_scoping (#4198) 2022-03-30 21:16:34 +00:00
SWC Bot
9a3591a424 chore: Publish crates 2022-03-30 20:34:01 +00:00
David Sherret
cffe5ca58e
feat(es/parser): Allow parsing files with missing close braces (#4187) 2022-03-30 20:31:24 +00:00
SWC Bot
b67c104877 chore: Publish crates 2022-03-30 12:07:14 +00:00
Austaras
3426dda4f7
fix(es/compat): Handle new.target in getter/setter properties (#4194) 2022-03-30 12:04:27 +00:00
SWC Bot
40b3381ae8 chore: Publish crates 2022-03-30 10:32:51 +00:00
magic-akari
4f5c5cf842
fix(es/compat): Handle spreads of string literials (#4191) 2022-03-30 19:30:06 +09:00
SWC Bot
a320f4ddfd chore: Publish crates 2022-03-30 06:10:09 +00:00
David Sherret
1759567fc4
chore(es/parser): Add span tests back (#4186) 2022-03-30 06:07:40 +00:00
SWC Bot
1ac4e54ee4 chore: Publish crates 2022-03-29 10:16:17 +00:00
Donny/강동윤
9a9a4f37d8
fix(es/minifier): Fix react-ace (#4183) 2022-03-29 10:13:30 +00:00
SWC Bot
9b63369d1e chore: Publish crates 2022-03-29 06:20:24 +00:00
OJ Kwon
8ca4e67451
refactor(cli): Alias plugin build with wasm target (#4181) 2022-03-29 15:17:40 +09:00
SWC Bot
c0abdb394a chore: Publish crates 2022-03-29 04:27:33 +00:00
Donny/강동윤
6d3ea17aa6
feat(es/minifier): Optimize switches more correctly (#4180) 2022-03-29 04:25:15 +00:00
SWC Bot
783904917d chore: Publish crates 2022-03-29 01:48:37 +00:00
Donny/강동윤
a6f6799811
feat(es/minifier): Evaluate trivial expressions (#4179) 2022-03-29 01:46:09 +00:00
Donny/강동윤
3d62f42020 chore: Publish crates 2022-03-29 07:07:48 +09:00
Donny/강동윤
e763af77dd chore: Publish v1.2.161 2022-03-28 21:26:46 +09:00
SWC Bot
6125de9808 chore: Publish crates 2022-03-28 12:20:51 +00:00
Alexander Akait
fcf67c4570
fix(es): Consume surrogate pairs (#4115) 2022-03-28 12:18:06 +00:00
SWC Bot
13e7b4f92a chore: Publish crates 2022-03-28 09:16:49 +00:00
Donny/강동윤
6f25e5774b
feat(es/minifier): Implement more rules for dropping unused assignemnts (#4171) 2022-03-28 09:14:16 +00:00
SWC Bot
e7089d8b3e chore: Publish crates 2022-03-28 08:52:53 +00:00
Artur
a88d56ee08
feat(es/lints): Implement no-obj-calls rule (#4168) 2022-03-28 08:50:32 +00:00
SWC Bot
4bb22f9b5c chore: Publish crates 2022-03-28 08:30:00 +00:00
Artur
2a9cb2d12a
refactor(es/lints): Use util for parens (#4167) 2022-03-28 08:20:46 +00:00
SWC Bot
589ff584e7 chore: Publish crates 2022-03-28 06:51:53 +00:00
OJ Kwon
b473414b3c
chore(deps): Update string-cache (#4169) 2022-03-28 15:49:30 +09:00
SWC Bot
4cdf4b96e3 chore: Publish crates 2022-03-27 05:34:40 +00:00
RiESAEX
ea0de90137
fix(es/codegen): Emit sourcemap of key-value properties correctly (#4166) 2022-03-27 14:26:53 +09:00
SWC Bot
3761ba4c98 chore: Publish crates 2022-03-26 06:52:11 +00:00