Commit Graph

3461 Commits

Author SHA1 Message Date
Donny/강동윤
1f466e1d2f
chore(ci): Fix benchmark action (#4242) 2022-04-04 20:12:03 +09:00
SWC Bot
fd7cbfb99d chore: Publish crates 2022-04-04 04:39:08 +00:00
Xiaotao
8008b79f8c
feat(es): Support jsonc for .swcrc (#4236) 2022-04-04 04:36:47 +00:00
SWC Bot
8a773d7b88 chore: Publish crates 2022-04-04 04:15:41 +00:00
Alexander Akait
3e7872c8de
feat(html): Initialize (#4240) 2022-04-04 04:12:45 +00:00
SWC Bot
b973d35282 chore: Publish crates 2022-04-04 03:48:39 +00:00
magic-akari
6a51d0471a
fix(es/minifier): Handle empty RegExp (#4235) 2022-04-04 03:46:07 +00:00
SWC Bot
abc412cdbd chore: Publish crates 2022-04-04 03:25:37 +00:00
Austaras
b1645f606d
fix(es/optimizer/simplifier): Collect idents in init first (#4239) 2022-04-04 12:23:15 +09:00
SWC Bot
e77f0a2a37 chore: Publish crates 2022-04-03 15:58:45 +00:00
Donny/강동윤
06d0891e7c
chore(bench): Migrate to criterion (#4237) 2022-04-04 00:56:29 +09:00
SWC Bot
14ab63b26e chore: Publish crates 2022-04-03 14:12:13 +00:00
magic-akari
6d380ea6fa
fix(es/parser): Support error reporting for TS1274 (#4232) 2022-04-03 23:09:36 +09:00
SWC Bot
6e4dc582ba chore: Publish crates 2022-04-03 13:15:32 +00:00
Donny/강동윤
fe358ad0b9
feat(es/minifier): Improve sequential inlining (#4231) 2022-04-03 13:13:15 +00:00
SWC Bot
aac4e34d91 chore: Publish crates 2022-04-03 11:49:06 +00:00
Donny/강동윤
55b98fc874
fix(es/minifier): Remap variables on IIFE evaluation (#4230)
- We now check if there's pending inlining before remapping variables.
 - We now use ad-hoc type for remapping.
 - We now inline before remapping to prevent interference with inlining.
2022-04-03 11:39:05 +00:00
Donny/강동윤
012d3a67fa chore: Publish v1.2.163 2022-04-03 16:06:38 +09:00
SWC Bot
833b045102 chore: Publish crates 2022-04-03 06:25:15 +00:00
OJ Kwon
6ea66cf001
feat(plugin): Implement plugin api for comments (#4229) 2022-04-03 15:22:36 +09:00
Donny/강동윤
f39895e563 chore: Publish crates 2022-04-02 16:25:18 +09:00
Donny/강동윤
7eea95be7a
fix(es/preset-env): Change order of passes 2022-04-02 06:57:17 +00:00
SWC Bot
372f81fd97 chore: Publish crates 2022-04-02 06:32:21 +00:00
Donny/강동윤
bbbaf15bba
test(es): Add a test to ensure that an issue is not a bug of swc (#4227) 2022-04-02 06:29:09 +00:00
SWC Bot
3337777f8c chore: Publish crates 2022-04-02 06:06:39 +00:00
Alexander Akait
e91f271873
feat(es/ast): Add raw to BigInt (#4218) 2022-04-02 06:04:14 +00:00
SWC Bot
257f0dbb7f chore: Publish crates 2022-04-02 05:37:49 +00:00
Alexander Akait
def2826029
feat(css/ast): Derive more traits (#4220) 2022-04-02 14:35:05 +09:00
SWC Bot
0bac3d08f0 chore: Publish crates 2022-04-02 05:34:19 +00:00
Victor Sumner
69cb512e57
fix(cli): Update plugin template (#4222) 2022-04-02 05:31:57 +00:00
Donny/강동윤
ac2357ebd9 chore: Publish crates 2022-04-02 01:59:34 +09:00
SWC Bot
77abfef314 chore: Publish crates 2022-04-01 11:55:47 +00:00
Alexander Akait
6696a93b5c
refactor(css/ast): Union all at-rules to one at-rule in AST (#4189) 2022-04-01 20:53:23 +09:00
SWC Bot
d2f44095dc chore: Publish crates 2022-04-01 11:14:19 +00:00
Donny/강동윤
688f653323
perf(es/minifier): Add fast-path for sequences pass (#4217) 2022-04-01 11:06:35 +00:00
SWC Bot
4679f65782 chore: Publish crates 2022-04-01 06:54:28 +00:00
Alexander Akait
75b0ed55f6
fix(css/prefixer): Fix flex box (#4212) 2022-04-01 06:52:03 +00:00
SWC Bot
ee9e661e03 chore: Publish crates 2022-04-01 06:22:48 +00:00
Donny/강동윤
164556290b
perf(es/parser): Improve performance by using #[cold] (#4215) 2022-04-01 06:20:29 +00:00
SWC Bot
1068561800 chore: Publish crates 2022-04-01 04:29:08 +00:00
magic-akari
b793aa0200
feat(es/compat): Support more regex expressions (#4205) 2022-04-01 04:26:30 +00:00
Donny/강동윤
a05a0d58a6 chore: Publish v1.2.162 2022-03-31 23:12:53 +09:00
Donny/강동윤
60c9ddf5fd chore: Publish crates 2022-03-31 23:08:24 +09:00
Donny/강동윤
61366c85b3 chore: Publish crates 2022-03-31 23:06:10 +09:00
SWC Bot
d19c8a8aa3 chore: Publish crates 2022-03-31 13:03:06 +00:00
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