Commit Graph

2335 Commits

Author SHA1 Message Date
Alex Lam S.L
d67daa8314
support string namespace in import & export (#5570) 2022-07-20 05:55:38 +08:00
Alex Lam S.L
f0120e90b6
fix corner case collapse_vars (#5569)
fixes #5568
2022-07-18 09:04:51 +08:00
Alex Lam S.L
ec4558be29
fix corner cases with parameter scope (#5567)
fixes #5566
2022-07-17 16:03:12 +08:00
Alex Lam S.L
5792f30175
fix corner case in evaluate (#5559)
fixes #5558
2022-07-15 20:36:52 +08:00
Alex Lam S.L
24443b6764
enhance collapse_vars (#5556) 2022-07-12 23:49:43 +08:00
Alex Lam S.L
154edf0427
enhance collapse_vars (#5555) 2022-07-11 23:10:40 +08:00
Alex Lam S.L
4778cf88e2
upgrade AST<->ESTree translation (#5554) 2022-07-11 07:18:25 +08:00
Alex Lam S.L
38bd4f65d0
fix corner cases in collapse_vars (#5553)
fixes #5552
2022-07-09 20:50:54 +08:00
Alex Lam S.L
0b808f6428
parse import expressions correctly (#5551)
fixes #5550
2022-07-08 19:25:30 +08:00
Alex Lam S.L
b2bc2e1173
parse export & import statements correctly (#5550)
fixes #5548
2022-07-08 04:04:56 +08:00
Alex Lam S.L
80787ff7ef
minor cleanups (#5549) 2022-07-08 03:14:54 +08:00
Alex Lam S.L
b92a89f325
fix corner case in conditionals (#5548) 2022-07-07 21:28:33 +08:00
Alex Lam S.L
902292f776
fix corner case in conditionals (#5547)
fixes #5546
2022-07-07 15:49:33 +08:00
Alex Lam S.L
3dcf098468
fix corner cases in conditionals & switches (#5545)
fixes #5543
fixes #5544
2022-07-07 14:59:06 +08:00
Alex Lam S.L
d89f0965aa
enhance conditionals (#5542) 2022-07-07 12:17:23 +08:00
Alex Lam S.L
c8d98f4787
enhance if_return (#5541) 2022-07-07 04:28:00 +08:00
Alex Lam S.L
0207b46d70
enhance if_return & inline (#5538) 2022-07-06 11:40:07 +08:00
Alex Lam S.L
3596b4feda
fix corner case in inline (#5537)
fixes #5536
2022-07-02 00:10:02 +08:00
Alex Lam S.L
51deeff72e
enhance inline (#5535) 2022-07-01 11:24:16 +08:00
Alex Lam S.L
4c227cc6bd
fix corner cases in inline & unused (#5534)
fixes #5533
2022-06-30 15:34:45 +08:00
Alex Lam S.L
2426657daa
fix corner case in inline (#5532)
fixes #5531
2022-06-30 04:09:53 +08:00
Alex Lam S.L
e1b03d0235
fix corner case in inline (#5529)
fixes #5528
2022-06-29 07:37:58 +08:00
Alex Lam S.L
f1b3e9df1e
fix corner case in inline (#5527)
fixes #5526
2022-06-26 20:48:14 +08:00
Alex Lam S.L
fcc87edb71
fix corner cases in dead_code & if_return (#5525)
fixes #5521
fixes #5522
fixes #5523
fixes #5524
2022-06-26 18:40:56 +08:00
Alex Lam S.L
8b464331ba
enhance dead_code & if_return (#5520) 2022-06-26 12:32:25 +08:00
Alex Lam S.L
9f57920566
enhance if_return (#5518) 2022-06-24 00:52:22 +08:00
Alex Lam S.L
933ca9ddd8
fix corner case in reduce_vars (#5517)
fixes #5516
2022-06-19 03:27:00 +08:00
Alex Lam S.L
4382bfe848
fix corner case in collapse_vars (#5513)
fixes #5512
2022-06-13 07:55:15 +08:00
Alex Lam S.L
b6f250f5c9
enhance unused (#5511) 2022-06-12 21:24:42 +08:00
Alex Lam S.L
5d69545299
enhance unsafe_comps (#5510) 2022-06-12 12:15:43 +08:00
Alex Lam S.L
139fad0c05
fix corner cases with instanceof (#5509)
- enhance `evaluate`
2022-06-12 10:01:54 +08:00
Alex Lam S.L
99946a3993
fix corner case in dead_code (#5507)
fixes #5506
2022-06-12 05:26:51 +08:00
Alex Lam S.L
053cb27fe3
fix corner case in collapse_vars (#5505)
fixes #5504
2022-06-10 09:12:59 +08:00
Alex Lam S.L
25017978e7
fix corner case in collapse_vars (#5503)
fixes #5502
2022-06-10 02:07:07 +08:00
Alex Lam S.L
123f9cf987
fix corner case in hoist_props (#5499)
fixes #5498
2022-06-07 23:29:42 +08:00
Alex Lam S.L
44e5e99aae
parse directives within arrow functions correctly (#5496)
fixes #5495
2022-06-07 10:33:17 +08:00
Alex Lam S.L
be53c4838b
fix corner case in collapse_vars (#5494)
fixes #5493
2022-06-06 23:36:19 +08:00
Alex Lam S.L
0c7b016fa7
fix corner case in inline & module (#5492)
fixes #5491
2022-06-06 22:52:22 +08:00
Alex Lam S.L
00665766da
fix corner case in side_effects (#5490)
fixes #5489
2022-06-06 20:32:32 +08:00
Alex Lam S.L
88b4283200
support class static initialization block (#5488) 2022-06-06 12:01:15 +08:00
Alex Lam S.L
d2bd0d1c1c
support top-level await (#5487) 2022-06-06 11:52:01 +08:00
Alex Lam S.L
a025392a30
fix corner case in comparisons (#5486)
fixes #5485
2022-06-05 00:47:38 +08:00
Alex Lam S.L
ad5f5ef2a3
fix corner case in webkit (#5483)
fixes #5480
2022-06-02 02:45:02 +08:00
Alex Lam S.L
ad3a331ca3
fix corner case in collapse_vars (#5482)
fixes #5481
2022-06-02 02:42:39 +08:00
Alex Lam S.L
3c9e1693d5
fix corner case in side_effects (#5479)
fixes #5478
2022-05-31 00:27:40 +08:00
Alex Lam S.L
8bc03dc6c4
fix corner case in keep_fargs (#5477)
fixes #5476
2022-05-29 12:10:19 +08:00
Alex Lam S.L
2152f00de2
enhance inline & module (#5475) 2022-05-27 11:57:05 +08:00
Alex Lam S.L
94aae05d45
fix corner case in merge_vars (#5472)
fixes #5471
2022-05-27 03:13:24 +08:00
Alex Lam S.L
59b23b8c13
fix corner case in booleans (#5470)
fixes #5469
2022-05-26 05:33:50 +08:00
Alex Lam S.L
c82fc1ef71
implement --module (#5462) 2022-05-24 05:45:47 +08:00
Alex Lam S.L
740f93f5a9
fix corner case in merge_vars (#5466)
fixes #5465
2022-05-24 05:45:07 +08:00
Alex Lam S.L
d4caa97b88
fix corner case in reduce_vars (#5464)
fixes #5463
2022-05-23 11:08:12 +08:00
Alex Lam S.L
c2ca7b7659
drop unused extends properly (#5461) 2022-05-23 03:53:32 +08:00
Alex Lam S.L
27aa85f84b
fix corner cases in merge_vars (#5457)
fixes #5456
2022-05-19 06:39:20 +08:00
Alex Lam S.L
33c9c48318
fix corner case in hoist_props & unused (#5455)
fixes #5454
2022-05-19 04:45:38 +08:00
Alex Lam S.L
63f16e4616
fix corner case in merge_vars (#5452)
fixes #5451
2022-05-18 02:41:05 +08:00
Alex Lam S.L
27727e6926
fix corner cases in unused (#5449)
fixes #5448
2022-05-17 17:03:06 +08:00
Alex Lam S.L
f70462aeb2
fix corner case in merge_vars (#5445)
fixes #5444
2022-05-16 16:30:14 +08:00
Alex Lam S.L
fc6a66836a
fix corner case in unused (#5446)
fixes #5444
2022-05-16 09:13:30 +08:00
Alex Lam S.L
7db2ada880
fix corner case in hoist_props (#5442)
fixes #5441
2022-05-16 06:49:09 +08:00
Alex Lam S.L
e31bbe329a
improve compatibility with use strict (#5440) 2022-05-14 12:15:54 +08:00
Alex Lam S.L
35c2149dbd
fix corner case in merge_vars (#5437)
fixes #5436
2022-05-08 04:16:28 +08:00
Alex Lam S.L
89a35f9fcd
fix corner case in reduce_vars (#5435)
fixes #5434
2022-05-06 09:32:47 +08:00
Alex Lam S.L
a0c0c294c5
fix corner case in assignments (#5426)
fixes #5425
2022-04-19 13:19:30 +08:00
Alex Lam S.L
fbdb7eeda3
fix corner case in merge_vars (#5424)
fixes #5423
2022-04-19 09:04:06 +08:00
Alex Lam S.L
20252c6483
fix corner case in merge_vars (#5421)
fixes #5420
2022-04-18 06:38:08 +08:00
Alex Lam S.L
5ebfa78f56
fix corner case with arguments (#5417)
fixes #5416
2022-04-15 06:52:10 +08:00
Alex Lam S.L
950609f578
fix corner case in inline (#5415)
fixes #5414
2022-04-13 06:19:37 +08:00
David Luhmer
36718948be
rename reserved keyword await (#5413) 2022-04-08 00:31:29 +08:00
Alex Lam S.L
21bd4c4a9d
fix corner cases in collapse_vars & hoist_vars (#5412)
fixes #5411
2022-04-07 04:12:03 +08:00
Alex Lam S.L
998c9792da
fix corner case in inline (#5410)
fixes #5409
2022-04-06 12:23:47 +08:00
Alex Lam S.L
ccd77d70db
fix corner case in reduce_vars (#5408)
fixes #5407
2022-04-05 10:09:25 +08:00
Alex Lam S.L
d75a946707
fix corner case in reduce_vars (#5406)
fixes #5405
2022-04-03 21:57:37 +08:00
Alex Lam S.L
224c91b6c1
fix corner case in inline (#5402)
fixes #5401
2022-04-03 01:12:53 +08:00
Alex Lam S.L
584e253f33
enahnce collapse_vars (#5398) 2022-04-01 20:26:27 +08:00
Alex Lam S.L
fb5e08e4ec
fix corner case in collapse_vars (#5397)
fixes #5396
2022-03-31 20:02:56 +08:00
Alex Lam S.L
e3d328f741
fix corner case in collapse_vars (#5395)
fixes #5394
2022-03-30 01:22:57 +08:00
Alex Lam S.L
8922f08fbf
fix corner cases in keep_fnames (#5393) 2022-03-29 03:01:01 +08:00
Alex Lam S.L
15a4074d1a
fix corner case in unused (#5392)
fixes #5391
2022-03-28 05:46:43 +08:00
Alex Lam S.L
c624b43739
fix corner case in collapse_vars (#5390)
fixes #5389
2022-03-22 13:05:57 +08:00
Alex Lam S.L
a8e040b133
fix corner case in properties (#5388)
fixes #5387
2022-03-21 00:01:42 +08:00
Alex Lam S.L
5e30f3a48b
fix corner case in inline (#5386)
fixes #5385
2022-03-20 22:50:28 +08:00
Alex Lam S.L
46570a4eb6
fix corner case in side_effects (#5383)
fixes #5382
2022-03-12 14:14:30 +08:00
Alex Lam S.L
01b84074d7
fix corner case in evaluate (#5381)
fixes #5380
2022-03-12 13:08:29 +08:00
Alex Lam S.L
12a6728c4e
fix corner case in hoist_vars (#5379)
fixes #5378
2022-03-06 17:56:00 +08:00
Alex Lam S.L
042c228c7b
fix corner case in inline (#5377)
fixes #5376
2022-03-06 03:29:56 +08:00
Alex Lam S.L
e2b00814a8
fix corner cases in inline (#5375) 2022-03-04 04:05:31 +08:00
Alex Lam S.L
104d385ba9
fix corner case in ie (#5372)
fixes #5370
2022-03-02 13:52:27 +08:00
Alex Lam S.L
fdbbef2991
enhance conditionals (#5371) 2022-03-02 11:00:37 +08:00
Alex Lam S.L
a9d0ddea9d
fix corner case in directives & expression (#5369)
fixes #5368
2022-02-24 05:04:04 +08:00
Alex Lam S.L
313e4974a4
fix corner case in inline (#5367)
fixes #5366
2022-02-21 11:31:29 +08:00
Alex Lam S.L
dd3b81dec6
enhance booleans (#5365) 2022-02-21 11:02:19 +08:00
Alex Lam S.L
d5afe16bc8
enhance booleans & evaluate (#5364) 2022-02-21 01:25:37 +08:00
Alex Lam S.L
212ce4608e
fix corner case in evaluate (#5363)
fixes #5362
2022-02-20 21:38:04 +08:00
Alex Lam S.L
fbc5ecf75a
fix corner case in unused (#5361)
fixes #5360
2022-02-20 02:26:51 +08:00
Alex Lam S.L
a7d06167a0
enhance mangle (#5359) 2022-02-19 14:02:40 +08:00
Alex Lam S.L
9686379884
enhance comparisons (#5358) 2022-02-19 04:27:17 +08:00
Alex Lam S.L
82e8ebd77d
fix corner case in evaluate (#5357)
fixes #5356
2022-02-15 16:28:49 +00:00
Alex Lam S.L
0b50880b4f
fix corner case in evaluate & unsafe (#5355)
fixes #5354
2022-02-15 14:47:22 +08:00
Alex Lam S.L
316245ee12
fix corner case in merge_vars (#5353)
fixes #5352
2022-02-13 08:22:34 +08:00
Alex Lam S.L
63b92ead4e
fix corner case in properties (#5351)
fixes #5350
2022-02-13 06:09:33 +08:00
Alex Lam S.L
a14555a39e
enhance conditionals, if_return & side_effects (#5348) 2022-02-12 23:18:07 +08:00
Alex Lam S.L
6d0bb58d68
enhance merge_vars (#5349) 2022-02-12 20:41:02 +08:00
Alex Lam S.L
b6c72c84d4
reduce overlap of sequences & side_effects (#5344) 2022-02-08 00:29:04 +08:00
Alex Lam S.L
6fb7de7787
fix corner case in inline (#5343)
fixes #5342
2022-02-05 13:19:42 +08:00
Alex Lam S.L
b106cd9476
fix corner case in unused (#5339)
fixes #5338
2022-02-04 07:13:23 +08:00
Alex Lam S.L
9a91a7a4dc
fix corner case in default_values (#5337)
fixes #5336
2022-02-04 05:44:25 +08:00
Alex Lam S.L
fa30960b8b
fix corner case in conditionals (#5335)
fixes #5334
2022-02-04 01:48:30 +08:00
Alex Lam S.L
8ceb4b0492
fix corner case in inline (#5333)
fixes #5332
2022-02-03 13:13:35 +08:00
Alex Lam S.L
aad5d6e122
enhance if_return (#5330) 2022-02-02 08:13:38 +08:00
Alex Lam S.L
77552d9e69
fix corner case in inline (#5329)
fixes #5328
2022-02-01 19:35:03 +08:00
Alex Lam S.L
d7eb80b050
enhance if_return (#5326) 2022-01-31 06:32:25 +08:00
Alex Lam S.L
0a5a1f3687
fix corner case in reduce_vars (#5325)
fixes #5324
2022-01-29 21:39:30 +08:00
Alex Lam S.L
e7d6dd2ea2
fix corner case in unused (#5323)
fixes #5322
2022-01-29 19:28:19 +08:00
Alex Lam S.L
28943bcebb
fix corner cases in collapse_vars (#5321)
fixes #5319
2022-01-29 15:57:53 +08:00
Alex Lam S.L
18f00457f6
fix corner case in merge_vars (#5320)
fixes #5319
2022-01-28 16:05:57 +08:00
Alex Lam S.L
e4a91a89e0
support custom indentation (#5318)
closes #50
2022-01-28 08:38:11 +08:00
Alex Lam S.L
3693bde2dd
fix corner case in inline (#5317)
fixes #5316
2022-01-28 07:17:17 +08:00
Alex Lam S.L
67438f3ff9
fix corner case in side_effects (#5315)
fixes #5314
2022-01-27 08:13:19 +08:00
Alex Lam S.L
371d25944d
fix corner case in max_line_len (#5313)
- speed up `max_line_len` & `preserve_line`
2022-01-26 23:47:21 +08:00
Alex Lam S.L
5c863b74d7
enhance collapse_vars (#5312) 2022-01-26 04:18:58 +08:00
Alex Lam S.L
b9b2a4f7f8
fix corner case in inline (#5311)
fixes #5222
2022-01-26 00:47:24 +08:00
Alex Lam S.L
b46c7944c6
fix corner case in collapse_vars (#5310)
fixes #5309
2022-01-23 00:45:11 +08:00
Alex Lam S.L
866cd4a975
enhance merge_vars (#5308) 2022-01-21 09:40:33 +08:00
Alex Lam S.L
e24b255350
implement keep_fargs for mangle (#5307)
closes #4657
2022-01-21 05:13:26 +08:00
Alex Lam S.L
efed55f42d
fix corner case in inline (#5306)
fixes #5305
2022-01-19 08:14:19 +08:00
Alex Lam S.L
8c2b76eff9
enhance side_effects (#5304) 2022-01-17 23:18:42 +08:00
Alex Lam S.L
b636e97e3b
fix corner cases in awaits (#5303) 2022-01-17 16:22:26 +08:00
Alex Lam S.L
35d7f316ef
fix corner cases in typeofs (#5301) 2022-01-17 14:03:41 +08:00
Alex Lam S.L
43807c26fb
fix performance regression (#5302)
fixes #5297
2022-01-17 11:49:47 +08:00
Alex Lam S.L
774feeadb8
minor clean-ups (#5300) 2022-01-17 01:14:52 +08:00
Alex Lam S.L
d96c59f9e6
fix corner case in side_effects (#5299)
fixes #5298
2022-01-16 02:33:14 +08:00
Alex Lam S.L
dfd6418878
fix corner case in inline (#5297)
fixes #5296
2022-01-15 04:18:35 +08:00
Alex Lam S.L
87e8aca245
fix corner cases in reduce_vars, side_effects & unused (#5295)
fixes #5294
2022-01-15 01:44:36 +08:00
Alex Lam S.L
14e1311bdf
fix corner cases in side_effects (#5293)
fixes #5292
2022-01-14 09:14:04 +08:00
Alex Lam S.L
ff3c2ed7a2
fix corner case in inline (#5291)
fixes #5290
2022-01-12 20:17:34 +08:00
Alex Lam S.L
f8602aca96
fix corner case in inline (#5289)
fixes #5288
2022-01-12 16:24:50 +08:00
Alex Lam S.L
9a58270b70
enhance imports (#5287) 2022-01-12 16:24:04 +08:00
Alex Lam S.L
f639a30bd2
fix corner cases in typeofs (#5286) 2022-01-11 13:13:46 +08:00
Alex Lam S.L
c7d2837184
fix corner case in inline (#5284)
fixes #5283
2022-01-10 15:43:26 +08:00
Alex Lam S.L
caaa753861
minor clean-ups (#5282) 2022-01-10 13:02:26 +08:00
Alex Lam S.L
e9d9d5a9d2
improve class compatibility in side_effects (#5279) 2022-01-09 21:15:42 +08:00
Alex Lam S.L
f473b4db38
fix corner case in collapse_vars (#5278)
fixes #5277
2022-01-08 09:46:21 +08:00
Alex Lam S.L
b0df5d7b55
enhance collapse_vars & reduce_vars (#5275)
fixes #5276
2022-01-08 05:26:49 +08:00
Alex Lam S.L
be8c75bae1
fix corner case in collapse_vars (#5274)
fixes #5273
2022-01-07 15:00:23 +08:00
Alex Lam S.L
58bea676ac
fix corner case in unused (#5272)
fixes #5271
2022-01-07 14:33:42 +08:00
Alex Lam S.L
9aab1f3661
fix corner case in inline (#5270)
fixes #5269
2022-01-07 13:22:16 +08:00
Alex Lam S.L
10a1523ee6
enhance collapse_vars (#5268) 2022-01-07 05:13:37 +08:00
Alex Lam S.L
d46eb69320
fix corner case in inline (#5267)
fixes #5266
2022-01-05 04:25:48 +08:00
Alex Lam S.L
3a3666a94e
fix corner cases in inline (#5265)
fixes #5263
fixes #5264
2022-01-04 22:05:03 +08:00