-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(html/minifier): Fix bugs of the smart mode (#5093)
- v1.10.17
- v1.10.17-nightly-20250218.1
- v1.10.16
- v1.10.16-nightly-20250213.1
- v1.10.15
- v1.10.15-nightly-20250208.1
- v1.10.14
- v1.10.14-nightly-20250203.1
- v1.10.13-nightly-20250203.1
- v1.10.12
- v1.10.12-nightly-20250129.1
- v1.10.11
- v1.10.11-nightly-20250127.1
- v1.10.10-nightly-20250127.1
- v1.10.9
- v1.10.9-nightly-20250121.1
- v1.10.8
- v1.10.8-nightly-20250119.1
- v1.10.7
- v1.10.7-nightly-20250110.2
- v1.10.7-nightly-20250110.1
- v1.10.6
- v1.10.6-nightly-20250107.1
- v1.10.5
- v1.10.5-nightly-20250107.1
- v1.10.4
- v1.10.4-nightly-20241230.1
- v1.10.3
- v1.10.3-nightly-20241227.1
- v1.10.2
- v1.10.2-nightly-20241226.1
- v1.10.1
- v1.10.1-nightly-20241209.1
- v1.10.0
- v1.10.0-nightly-20241204.2
- v1.10.0-nightly-20241204.1
- v1.10.0-nightly-20241202.1
- v1.9.3
- v1.9.3-nightly-20241122.1
- v1.9.2
- v1.9.2-nightly-20241111.1
- v1.9.1
- v1.9.1-nightly-20241106.1
- v1.9.0
- v1.9.0-nightly-20241106.1
- v1.8.0
- v1.8.0-nightly-20241104.1
- v1.7.42
- v1.7.42-nightly-20241031.1
- v1.7.41-nightly-20241031.1
- v1.7.40
- v1.7.40-nightly-20241026.1
- v1.7.39
- v1.7.39-nightly-20241022.1
- v1.7.38-nightly-20241021.1
- v1.7.37-nightly-20241021.1
- v1.7.36
- v1.7.36-nightly-20241015.1
- v1.7.35
- v1.7.35-nightly-20241010.1
- v1.7.34-nightly-20241010.1
- v1.7.33-nightly-20241010.3
- v1.7.33-nightly-20241010.2
- v1.7.33-nightly-20241010.1
- v1.7.31-nightly-20241008.2
- v1.7.31-nightly-20241008.1
- v1.7.30-nightly-20241008.1
- v1.7.30-nightly-20241002.1
- v1.7.29
- v1.7.29-nightly-20241001.1
- v1.7.28
- v1.7.28-nightly-20240924.1
- v1.7.27
- v1.7.27-nightly-20240911.1
- v1.7.26
- v1.7.26-nightly-20240911.1
- v1.7.25
- v1.7.25-nightly-20240911.1
- v1.7.24
- v1.7.24-nightly-20240908.1
- v1.7.23
- v1.7.23-nightly-20240902.1
- v1.7.22
- v1.7.22-nightly-20240830.1
- v1.7.21
- v1.7.21-nightly-20240828.1
- v1.7.20-nightly-20240828.1
- v1.7.19
- v1.7.19-nightly-20240828.1
- v1.7.18
- v1.7.18-nightly-20240824.1
- v1.7.17
- v1.7.17-nightly-20240823.1
- v1.7.17-nightly-20240820.3
- v1.7.17-nightly-20240820.2
- v1.7.17-nightly-20240820.1
- v1.7.16-nightly-20240820.1
- v1.7.15-nightly-20240820.8
- v1.7.15-nightly-20240820.7
- v1.7.15-nightly-20240820.6
- v1.7.15-nightly-20240820.5
- v1.7.15-nightly-20240820.4
- v1.7.15-nightly-20240820.3
- v1.7.15-nightly-20240820.2
- v1.7.15-nightly-20240820.1
- v1.7.14
- v1.7.14-nightly-20240819.1
- v1.7.13-nightly-20240819.2
- v1.7.13-nightly-20240819.1
- v1.7.12
- v1.7.12-nightly-20240819.1
- v1.7.12-nightly-20240816.2
- v1.7.12-nightly-20240816.1
- v1.7.11
- v1.7.11-nightly-20240814.1
- v1.7.11-nightly-20240813.1
- v1.7.11-nightly-20240812.2
- v1.7.11-nightly-20240812.1
- v1.7.10
- v1.7.10-nightly-20240809.1
- v1.7.9
- v1.7.9-nightly-20240809.1
- v1.7.8
- v1.7.8-nightly-20240809.2
- v1.7.8-nightly-20240809.1
- v1.7.8-nightly-20240808.1
- v1.7.8-nightly-20240807.2
- v1.7.8-nightly-20240807.1
- v1.7.7-nightly-20240806.4
- v1.7.7-nightly-20240806.3
- v1.7.7-nightly-20240806.2
- v1.7.7-nightly-20240806.1
- v1.7.7-nightly-20240805.1
- v1.7.6
- v1.7.6-nightly-20240804.1
- v1.7.5
- v1.7.5-nightly-20240802.1
- v1.7.5-nightly-20240801.4
- v1.7.5-nightly-20240801.3
- v1.7.5-nightly-20240801.2
- v1.7.5-nightly-20240801.1
- v1.7.4
- v1.7.4-nightly-20240731.1
- v1.7.4-nightly-20240729.1
- v1.7.3
- v1.7.3-nightly-20240727.1
- v1.7.2
- v1.7.2-nightly-20240725.2
- v1.7.2-nightly-20240725.1
- v1.7.1
- v1.7.1-nightly-20240724.2
- v1.7.1-nightly-20240724.1
- v1.7.1-nightly-20240723.1
- v1.7.1-nightly-20240722.1
- v1.7.1-nightly-20240721.2
- v1.7.1-nightly-20240721.1
- v1.7.0
- v1.7.0-nightly-20240718.3
- v1.7.0-nightly-20240718.2
- v1.7.0-nightly-20240718.1
- v1.7.0-nightly-20240717.3
- v1.7.0-nightly-20240717.2
- v1.7.0-nightly-20240717.1
- v1.7.0-nightly-20240715.2
- v1.7.0-nightly-20240715.1
- v1.7.0-nightly-20240714.1
- v1.7.0-nightly-20240713.1
- v1.6.13
- v1.6.13-nightly-20240706.1
- v1.6.12
- v1.6.12-nightly-20240706.2
- v1.6.12-nightly-20240706.1
- v1.6.11-nightly-20240706.1
- v1.6.9-nightly-20240706.6
- v1.6.9-nightly-20240706.5
- v1.6.9-nightly-20240706.4
- v1.6.9-nightly-20240706.3
- v1.6.9-nightly-20240706.2
- v1.6.9-nightly-20240706.1
- v1.6.8-nightly-20240706.1
- v1.6.8-nightly-20240705.2
- v1.6.8-nightly-20240705.1
- v1.6.8-nightly-20240704.3
- v1.6.8-nightly-20240704.2
- v1.6.8-nightly-20240704.1
- v1.6.7
- v1.6.7-nightly-20240703.4
- v1.6.7-nightly-20240703.3
- v1.6.7-nightly-20240703.2
- v1.6.7-nightly-20240703.1
- v1.6.6
- v1.6.5
- v1.6.4
- v1.6.3
- v1.6.1
- v1.6.0
- v1.5.30-nightly-20240614.2
- v1.5.30-nightly-20240614.1
- v1.5.29
- v1.5.29-nightly-20240612.3
- v1.5.29-nightly-20240612.2
- v1.5.29-nightly-20240612.1
- v1.5.29-nightly-20240611.1
- v1.5.28
- v1.5.28-nightly-20240611.1
- v1.5.27
- v1.5.26
- v1.5.26-nightly-20240610.1
- v1.5.26-nightly-20240607.1
- v1.5.25
- v1.5.24
- v1.5.23
- v1.5.22
- v1.5.21
- v1.5.21-nightly-20240530.2
- v1.5.21-nightly-20240530.1
- v1.5.21-nightly-20240529.4
- v1.5.21-nightly-20240529.2
- v1.5.21-nightly-20240529.1
- v1.5.20
- v1.5.19
- v1.5.18
- v1.5.17
- v1.5.16
- v1.5.15
- v1.5.14
- v1.5.13
- v1.5.12
- v1.5.11
- v1.5.11-nightly-20240606.1
- v1.5.11-nightly-20240601.1
- v1.5.11-nightly-20240531.1
- v1.5.10
- v1.5.9
- v1.5.8
- v1.5.8-nightly-20240516.2
- v1.5.8-nightly-20240516.1
- v1.5.7
- v1.5.6
- v1.5.6-nightly-20240511.1
- v1.5.5
- v1.5.5-nightly-20240507.1
- v1.5.4
- v1.5.3
- v1.5.3-nightly-20240506.1
- v1.5.3-nightly-20240501.1
- v1.5.3-nightly-20240429.2
- v1.5.3-nightly-20240429.1
- v1.5.2
- v1.5.1
- v1.5.1-nightly-20240426.1
- v1.5.0
- v1.4.17
- v1.4.17-nightly-20240423.3
- v1.4.17-nightly-20240423.2
- v1.4.17-nightly-20240423.1
- v1.4.17-nightly-20240421.1
- v1.4.17-nightly-20240419.1
- v1.4.16
- v1.4.15
- v1.4.15-nightly-20240417.1
- v1.4.15-nightly-20240416.4
- v1.4.15-nightly-20240416.3
- v1.4.15-nightly-20240416.2
- v1.4.15-nightly-20240416.1
- v1.4.14
- v1.4.14-nightly-20240411.1
- v1.4.13
- v1.4.13-nightly-20240409.1
- v1.4.13-nightly-20240406.1
- v1.4.12
- v1.4.12-nightly-20240404.1
- v1.4.12-nightly-20240401.1
- v1.4.12-nightly-20240331.1
- v1.4.11
- v1.4.10
- v1.4.9
- v1.4.9-nightly-20240326.2
- v1.4.9-nightly-20240326.1
- v1.4.9-nightly-20240321.1
- v1.4.9-nightly-20240316.1
- v1.4.8
- v1.4.7
- v1.4.7-nightly-20240312.1
- v1.4.7-nightly-20240310.2
- v1.4.7-nightly-20240310.1
- v1.4.6
- v1.4.6-nightly-20240308.1
- v1.4.6-nightly-20240307.1
- v1.4.5
- v1.4.5-nightly-20240306.1
- v1.4.4
- v1.4.4-nightly-20240305.1
- v1.4.3
- v1.4.3-nightly-20240304.1
- v1.4.3-nightly-20240301.1
- v1.4.3-nightly-20240228.1
- v1.4.3-nightly-20240226.1
- v1.4.3-nightly-20240225.1
- v1.4.3-nightly-20240222.2
- v1.4.3-nightly-20240222.1
- v1.4.2
- v1.4.2-nightly-20240219.2
- v1.4.2-nightly-20240219.1
- v1.4.2-nightly-20240216.1
- v1.4.1
- v1.4.1-nightly-20240213.2
- v1.4.1-nightly-20240213.1
- v1.4.1-nightly-20240210.1
- v1.4.1-nightly-20240208.2
- v1.4.1-nightly-20240208.1
- v1.4.1-nightly-20240207.2
- v1.4.1-nightly-20240207.1
- v1.4.0
- v1.3.108-nightly-20240205.1
- v1.3.108-nightly-20240204.1
- v1.3.108-nightly-20240201.1
- v1.3.108-nightly-20240131.1
- v1.3.108-nightly-20240129.1
- v1.3.107
- v1.3.107-nightly-20240128.2
- v1.3.107-nightly-20240128.1
- v1.3.106
- v1.3.106-nightly-20240125.1
- v1.3.106-nightly-20240124.1
- v1.3.106-nightly-20240123.1
- v1.3.106-nightly-20240122.2
- v1.3.106-nightly-20240122.1
- v1.3.106-nightly-20240121.1
- v1.3.105
- v1.3.105-nightly-20240121.1
- v1.3.105-nightly-20240120.1
- v1.3.105-nightly-20240119.1
- v1.3.105-nightly-20240118.1
- v1.3.104
- v1.3.104-nightly-20240117.1
- v1.3.104-nightly-20240116.1
- v1.3.103
- v1.3.103-nightly-20240115.1
- v1.3.103-nightly-20240114.1
- v1.3.103-nightly-20240113.1
- v1.3.103-nightly-20240112.1
- v1.3.103-nightly-20240111.1
- v1.3.103-nightly-20240110.1
- v1.3.103-nightly-20240109.1
- v1.3.103-nightly-20240108.1
- v1.3.103-nightly-20240107.1
- v1.3.103-nightly-20240106.1
- v1.3.103-nightly-20240105.1
- v1.3.103-nightly-20240104.1
- v1.3.103-nightly-20240103.1
- v1.3.103-nightly-20240102.1
- v1.3.103-nightly-20240101.1
- v1.3.102
- v1.3.102-nightly-20231231.1
- v1.3.102-nightly-20231230.1
- v1.3.102-nightly-20231229.1
- v1.3.102-nightly-20231228.1
- v1.3.102-nightly-20231227.1
- v1.3.102-nightly-20231226.1
- v1.3.102-nightly-20231225.1
- v1.3.102-nightly-20231224.1
- v1.3.102-nightly-20231223.1
- v1.3.102-nightly-20231222.1
- v1.3.102-nightly-20231221.1
- v1.3.102-nightly-20231220.1
- v1.3.102-nightly-20231219.1
- v1.3.101
- v1.3.101-nightly-20231218.1
- v1.3.101-nightly-20231217.1
- v1.3.101-nightly-20231216.1
- v1.3.101-nightly-20231215.1
- v1.3.101-nightly-20231214.1
- v1.3.101-nightly-20231213.1
- v1.3.101-nightly-20231212.1
- v1.3.101-nightly-20231211.1
- v1.3.101-nightly-20231210.1
- v1.3.101-nightly-20231209.1
- v1.3.101-nightly-20231208.1
- v1.3.101-nightly-20231207.1
- v1.3.101-nightly-20231206.1
- v1.3.101-nightly-20231205.1
- v1.3.101-nightly-20231204.1
- v1.3.101-nightly-20231203.1
- v1.3.101-nightly-20231202.1
- v1.3.101-nightly-20231201.1
- v1.3.100
- v1.3.100-nightly-20231130.1
- v1.3.100-nightly-20231129.1
- v1.3.100-nightly-20231128.1
- v1.3.100-nightly-20231127.1
- v1.3.100-nightly-20231126.1
- v1.3.100-nightly-20231125.1
- v1.3.100-nightly-20231124.1
- v1.3.100-nightly-20231123.1
- v1.3.100-nightly-20231122.1
- v1.3.99
- v1.3.98
- v1.3.98-nightly-20231121.1
- v1.3.98-nightly-20231120.1
- v1.3.98-nightly-20231119.1
- v1.3.98-nightly-20231118.1
- v1.3.98-nightly-20231117.1
- v1.3.98-nightly-20231116.1
- v1.3.98-nightly-20231115.1
- v1.3.98-nightly-20231114.1
- v1.3.98-nightly-20231113.1
- v1.3.98-nightly-20231112.1
- v1.3.98-nightly-20231111.2
- v1.3.98-nightly-20231111.1
- v1.3.98-nightly-20231110.1
- v1.3.97
- v1.3.97-nightly-20231109.1
- v1.3.97-nightly-20231108.1
- v1.3.97-nightly-20231107.1
- v1.3.97-nightly-20231106.1
- v1.3.97-nightly-20231105.1
- v1.3.97-nightly-20231104.1
- v1.3.96
- v1.3.96-nightly-20231103.1
- v1.3.96-nightly-20231102.1
- v1.3.96-nightly-20231101.1
- v1.3.96-nightly-20231031.1
- v1.3.96-nightly-20231030.1
- v1.3.96-nightly-20231029.1
- v1.3.96-nightly-20231028.1
- v1.3.96-nightly-20231026.1
- v1.3.96-nightly-20231025.1
- v1.3.95
- v1.3.95-nightly-20231024.2
- v1.3.95-nightly-20231024.1
- v1.3.95-nightly-20231023.1
- v1.3.95-nightly-20231022.1
- v1.3.94
- v1.3.94-nightly-20231021.1
- v1.3.94-nightly-20231020.2
- v1.3.94-nightly-20231020.1
- v1.3.94-nightly-20231019.1
- v1.3.94-nightly-20231018.1
- v1.3.94-nightly-20231017.1
- v1.3.94-nightly-20231016.1
- v1.3.94-nightly-20231015.1
- v1.3.94-nightly-20231014.1
- v1.3.93
- v1.3.93-nightly-20231013.1
- v1.3.93-nightly-20231012.2
- v1.3.93-nightly-20231012.1
- v1.3.93-nightly.20231011.1
- v1.3.92
- v1.3.91
- v1.3.90
- v1.3.89
- v1.3.88
- v1.3.87
- v1.3.86
- v1.3.85
- v1.3.84
- v1.3.83
- v1.3.82
- v1.3.81
- v1.3.80
- v1.3.79
- v1.3.78
- v1.3.77
- v1.3.76
- v1.3.75
- v1.3.74
- v1.3.73
- v1.3.72
- v1.3.71
- v1.3.70
- v1.3.69
- v1.3.68
- v1.3.67
- v1.3.66
- v1.3.65
- v1.3.64
- v1.3.63
- v1.3.62
- v1.3.61
- v1.3.60
- v1.3.59
- v1.3.58
- v1.3.57
- v1.3.56
- v1.3.55
- v1.3.54
- v1.3.53
- v1.3.52
- v1.3.51
- v1.3.50
- v1.3.49
- v1.3.47
- v1.3.46
- v1.3.45
- v1.3.44
- v1.3.42
- v1.3.41
- v1.3.40
- v1.3.39
- v1.3.38
- v1.3.37
- v1.3.36
- v1.3.35
- v1.3.34
- v1.3.32
- v1.3.31
- v1.3.30
- v1.3.29
- v1.3.28
- v1.3.27
- v1.3.26
- v1.3.25
- v1.3.24
- v1.3.23
- v1.3.22
- v1.3.21
- v1.3.20
- v1.3.19
- v1.3.18
- v1.3.17
- v1.3.16
- v1.3.15
- v1.3.14
- v1.3.11
- v1.3.10
- v1.3.9
- v1.3.8
- v1.3.7
- v1.3.6
- v1.3.5
- v1.3.4
- v1.3.3
- v1.3.2
- v1.3.1
- v1.3.0
- v1.2.249
- v1.2.248
- v1.2.247
- v1.2.246
- v1.2.245
- v1.2.244
- v1.2.242
- v1.2.241
- v1.2.239
- v1.2.237
- v1.2.235
- v1.2.233
- v1.2.232
- v1.2.231
- v1.2.230
- v1.2.229
- v1.2.228
- v1.2.227
- v1.2.226
- v1.2.224
- v1.2.223
- v1.2.222
- v1.2.220
- v1.2.219
- v1.2.218
- v1.2.213
- v1.2.212
- v1.2.211
- v1.2.210
- v1.2.209
- v0.5.0
- swc_core@v14.0.0
- swc_core@v13.3.0
- swc_core@v13.2.0
- swc_core@v13.1.0
- swc_core@v13.0.4
- swc_core@v13.0.3
- swc_core@v13.0.2
- swc_core@v13.0.1
- swc_core@v13.0.0
- swc_core@v12.0.1
- swc_core@v12.0.0
- swc_core@v11.0.1
- swc_core@v11.0.0
- swc_core@v10.7.0
- swc_core@v10.6.0
- swc_core@v10.5.1
- swc_core@v10.5.0
- swc_core@v10.4.0
- swc_core@v10.3.0
- swc_core@v10.2.5
- swc_core@v10.2.4
- swc_core@v10.2.3
- swc_core@v10.2.2
- swc_core@v10.2.1
- swc_core@v10.2.0
- swc_core@v10.1.0
- swc_core@v10.0.2
- swc_core@v10.0.1
- swc_core@v10.0.0
- swc_core@v9.0.6
- swc_core@v9.0.5
- swc_core@v9.0.4
- swc_core@v9.0.3
- swc_core@v9.0.2
- swc_core@v9.0.1
- swc_core@v9.0.0
- swc_core@v8.0.2
- swc_core@v8.0.0
- swc_core@v7.0.0
- swc_core@v6.0.2
- swc_core@v6.0.1
- swc_core@v6.0.0
- swc_core@v5.0.4
- swc_core@v5.0.3
- swc_core@v5.0.2
- swc_core@v5.0.1
- swc_core@v5.0.0
- swc_core@v4.0.3
- swc_core@v4.0.2
- swc_core@v4.0.1
- swc_core@v4.0.0
- swc_core@v3.0.2
- swc_core@v3.0.1
- swc_core@v3.0.0
- swc_core@v2.0.0
- swc_core@v1.0.6
- swc_core@v1.0.5
- swc_core@v1.0.3
- swc_core@v1.0.2
- swc_core@v1.0.1
- swc_core@v1.0.0
- swc_core@v0.109.2
- swc_core@v0.109.1
- swc_core@v0.109.0
- swc_core@v0.108.0
- swc_core@v0.107.0
- swc_core@v0.106.4
- swc_core@v0.106.3
- swc_core@v0.106.2
- swc_core@v0.106.1
- show
1 parent
09d7f7a
commit 5932a0a
Showing
52 changed files
with
604 additions
and
199 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
9 changes: 2 additions & 7 deletions
9
crates/swc_html_minifier/tests/fixture/element/empty-metadata-elements/output.min.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,4 @@ | ||
<!doctype html><html lang=en><body> | ||
|
||
|
||
|
||
|
||
<svg> | ||
<!doctype html><html lang=en><svg> | ||
|
||
|
||
</svg> | ||
</svg> |
2 changes: 1 addition & 1 deletion
2
crates/swc_html_minifier/tests/fixture/text/angular/output.min.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<!doctype html><html lang=en><meta charset=UTF-8><title>Document</title><body><template ngfor #hero [ngforof]=heroes><hero-detail *ngif=hero [hero]=hero></hero-detail></template><form (ngsubmit)=onSubmit(theForm) #theform=ngForm><div class=form-group><label for=name>Name</label> <input class=form-control required ngcontrol=firstName [(ngmodel)]=currentHero.firstName></div><button [disabled]=!theForm.form.valid>Submit</button></form> | ||
<!doctype html><html lang=en><meta charset=UTF-8><title>Document</title><body><template ngfor #hero [ngforof]=heroes> <hero-detail *ngif=hero [hero]=hero></hero-detail> </template><form (ngsubmit)=onSubmit(theForm) #theform=ngForm><div class=form-group><label for=name>Name</label> <input class=form-control required ngcontrol=firstName [(ngmodel)]=currentHero.firstName></div><button [disabled]=!theForm.form.valid>Submit</button></form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
crates/swc_html_minifier/tests/fixture/text/inline-19/output.min.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<!doctype html><html lang=en><div><a href=#><span><b>foo</b>z <i>bar</i></span></a></div> | ||
<!doctype html><html lang=en><div><a href=#><span><b>foo </b>z <i>bar</i></span></a></div> |
5 changes: 4 additions & 1 deletion
5
crates/swc_html_minifier/tests/fixture/text/inline-22/input.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<span> <!-- test --> text <!-- test --></span> <span> <!-- test --> text <!-- test --></span> | ||
<span> <!-- test --> text <!-- test --></span> <span><!-- test --> text <!-- test --></span> | ||
<span> <!-- test --> text <!-- test --> </span> <span><!-- test --> text <!-- test --></span> | ||
<span> <!-- test --> text <!-- test --></span> <span> <!-- test --> text <!-- test --></span> | ||
<span> <!-- test --> text <!-- test --> </span> <span> <!-- test --> text <!-- test --></span> |
2 changes: 1 addition & 1 deletion
2
crates/swc_html_minifier/tests/fixture/text/inline-22/output.min.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<!doctype html><html lang=en><span>text</span> <span>text</span> | ||
<!doctype html><html lang=en><span>text </span><span> text </span><span> text </span><span> text </span><span> text </span><span> text </span><span> text </span><span> text</span> |
2 changes: 1 addition & 1 deletion
2
crates/swc_html_minifier/tests/fixture/text/inline-25/output.min.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<!doctype html><svg><linearGradient id=gradient /></svg><span>a</span> | ||
<!doctype html><svg><linearGradient id=gradient /> </svg><span>a</span> |
3 changes: 3 additions & 0 deletions
3
crates/swc_html_minifier/tests/fixture/text/inline-27/config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"collapseWhitespaces": "smart" | ||
} |
3 changes: 3 additions & 0 deletions
3
crates/swc_html_minifier/tests/fixture/text/inline-27/input.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<span> <span><!-- test --> text <!-- test --> </span></span> <span><span> <!-- test --> text <!-- test --></span> </span> |
1 change: 1 addition & 0 deletions
1
crates/swc_html_minifier/tests/fixture/text/inline-27/output.min.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<!doctype html><html lang=en><span><span>text </span></span><span><span> text</span></span> |
3 changes: 3 additions & 0 deletions
3
crates/swc_html_minifier/tests/fixture/text/inline-28/config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"collapseWhitespaces": "smart" | ||
} |
3 changes: 3 additions & 0 deletions
3
crates/swc_html_minifier/tests/fixture/text/inline-28/input.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<span> <div><!-- test --> text <!-- test --> </div></span> <span><div> <!-- test --> text <!-- test --></div> </span> |
1 change: 1 addition & 0 deletions
1
crates/swc_html_minifier/tests/fixture/text/inline-28/output.min.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<!doctype html><html lang=en><span><div>text</div></span><span><div>text</div></span> |
3 changes: 3 additions & 0 deletions
3
crates/swc_html_minifier/tests/fixture/text/inline-29/config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"collapseWhitespaces": "smart" | ||
} |
3 changes: 3 additions & 0 deletions
3
crates/swc_html_minifier/tests/fixture/text/inline-29/input.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<span> <span><!-- test --> text <!-- test --> </span><meta name="test"><!-- test --></span> <span><!-- test --><meta name="test"><span> <!-- test --> text <!-- test --></span> </span> |
1 change: 1 addition & 0 deletions
1
crates/swc_html_minifier/tests/fixture/text/inline-29/output.min.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<!doctype html><html lang=en><span><span>text </span><meta name=test></span><span><meta name=test><span> text</span></span> |
3 changes: 3 additions & 0 deletions
3
crates/swc_html_minifier/tests/fixture/text/inline-30/config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"collapseWhitespaces": "smart" | ||
} |
3 changes: 3 additions & 0 deletions
3
crates/swc_html_minifier/tests/fixture/text/inline-30/input.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<foo-bar><span>test</span> a </foo-bar> b <foo-bar> c <span> test</span></foo-bar> |
1 change: 1 addition & 0 deletions
1
crates/swc_html_minifier/tests/fixture/text/inline-30/output.min.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<!doctype html><html lang=en><foo-bar><span>test</span> a </foo-bar> b <foo-bar> c <span>test</span></foo-bar> |
3 changes: 3 additions & 0 deletions
3
crates/swc_html_minifier/tests/fixture/text/inline-31/config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"collapseWhitespaces": "smart" | ||
} |
3 changes: 3 additions & 0 deletions
3
crates/swc_html_minifier/tests/fixture/text/inline-31/input.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<foo-bar> <span>test</span> </foo-bar> <foo-bar> <span>test</span> </foo-bar> |
1 change: 1 addition & 0 deletions
1
crates/swc_html_minifier/tests/fixture/text/inline-31/output.min.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<!doctype html><html lang=en><foo-bar><span>test</span> </foo-bar> <foo-bar> <span>test</span></foo-bar> |
3 changes: 3 additions & 0 deletions
3
crates/swc_html_minifier/tests/fixture/text/none-1/config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"collapseWhitespaces": "smart" | ||
} |
18 changes: 18 additions & 0 deletions
18
crates/swc_html_minifier/tests/fixture/text/none-1/input.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<!doctype html> | ||
<div><span>test</span> <meta name="test"> <span>test</span></div> | ||
<div><span>test</span> a <meta name="test"> <span>test</span></div> | ||
<div><span>test</span> <meta name="test"> b <span>test</span></div> | ||
<div><span>test</span> a <meta name="test"> b <span>test</span></div> | ||
<div> <meta name="test"> <span>test</span> <meta name="test"> <span>test</span> <meta name="test"> </div> | ||
<div> <span>test</span> <meta name="test"><meta name="test"><meta name="test"> <span>test</span> </div> | ||
<div> <span>test</span> <meta name="test"> <meta name="test"> <meta name="test"> <span>test</span> </div> | ||
<div><span>test</span> <template></template> <span>test</span></div> | ||
<div><div>test</div> <meta name="test"> <div>test</div></div> | ||
<div><img src="" alt=""> <meta name="test"> <img src="" alt=""></div> | ||
<div><meta name="test"> <span>test</span> <meta name="test"></div> | ||
<div><span>test</span> a<meta name="test"> b <span>test</span></div> | ||
<div><span>test</span> a <meta name="test">b <span>test</span></div> | ||
<div><span>test</span> a <meta name="test"> b <span>test</span></div> | ||
<div><span>test</span> a<meta name="test">b <span>test</span></div> | ||
<div> <meta name="test"> <span>test</span> <meta name="test"> <span>test</span> <meta name="test"> </div> | ||
<div><span>test </span> a <meta name="test"> b <span>test</span></div> |
1 change: 1 addition & 0 deletions
1
crates/swc_html_minifier/tests/fixture/text/none-1/output.min.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<!doctype html><div><span>test</span><meta name=test> <span>test</span></div><div><span>test</span> a<meta name=test> <span>test</span></div><div><span>test</span><meta name=test> b <span>test</span></div><div><span>test</span> a<meta name=test> b <span>test</span></div><div><meta name=test> <span>test</span><meta name=test> <span>test</span><meta name=test></div><div><span>test</span><meta name=test><meta name=test><meta name=test> <span>test</span></div><div><span>test</span><meta name=test><meta name=test><meta name=test> <span>test</span></div><div><span>test</span><template></template> <span>test</span></div><div><div>test</div><meta name=test><div>test</div></div><div><img src="" alt=""><meta name=test> <img src="" alt=""></div><div><meta name=test> <span>test</span><meta name=test></div><div><span>test</span> a<meta name=test> b <span>test</span></div><div><span>test</span> a <meta name=test>b <span>test</span></div><div><span>test</span> a<meta name=test> b <span>test</span></div><div><span>test</span> a<meta name=test>b <span>test</span></div><div><meta name=test> <span>test</span><meta name=test> <span>test</span><meta name=test></div><div><span>test </span>a<meta name=test> b <span>test</span></div> |
Oops, something went wrong.
5932a0a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Benchmark
es/full/minify/libraries/antd
1640223769
ns/iter (± 19090376
)1672297291
ns/iter (± 23267255
)0.98
es/full/minify/libraries/d3
416789414
ns/iter (± 8815216
)445397106
ns/iter (± 9566303
)0.94
es/full/minify/libraries/echarts
1646512096
ns/iter (± 41099415
)1693736239
ns/iter (± 38959138
)0.97
es/full/minify/libraries/jquery
93324118
ns/iter (± 2689501
)97445675
ns/iter (± 4879947
)0.96
es/full/minify/libraries/lodash
120483246
ns/iter (± 2359613
)127648707
ns/iter (± 6755042
)0.94
es/full/minify/libraries/moment
52609502
ns/iter (± 487832
)54838944
ns/iter (± 2469135
)0.96
es/full/minify/libraries/react
17393466
ns/iter (± 86020
)18999616
ns/iter (± 488791
)0.92
es/full/minify/libraries/terser
601409184
ns/iter (± 9059358
)623871726
ns/iter (± 6318008
)0.96
es/full/minify/libraries/three
544108895
ns/iter (± 5272706
)571863326
ns/iter (± 13688275
)0.95
es/full/minify/libraries/typescript
3444394769
ns/iter (± 89926496
)3530223284
ns/iter (± 51565396
)0.98
es/full/minify/libraries/victory
731924452
ns/iter (± 14191426
)739288745
ns/iter (± 21177138
)0.99
es/full/minify/libraries/vue
147051025
ns/iter (± 11727283
)161084777
ns/iter (± 6128410
)0.91
es/full/codegen/es3
31695
ns/iter (± 895
)30877
ns/iter (± 754
)1.03
es/full/codegen/es5
31911
ns/iter (± 1664
)30906
ns/iter (± 867
)1.03
es/full/codegen/es2015
31728
ns/iter (± 738
)30874
ns/iter (± 1025
)1.03
es/full/codegen/es2016
31520
ns/iter (± 1248
)30845
ns/iter (± 482
)1.02
es/full/codegen/es2017
31304
ns/iter (± 1023
)30968
ns/iter (± 541
)1.01
es/full/codegen/es2018
31237
ns/iter (± 758
)30860
ns/iter (± 389
)1.01
es/full/codegen/es2019
31200
ns/iter (± 853
)30971
ns/iter (± 296
)1.01
es/full/codegen/es2020
31416
ns/iter (± 1361
)30949
ns/iter (± 433
)1.02
es/full/all/es3
200384737
ns/iter (± 14616052
)207212073
ns/iter (± 13336605
)0.97
es/full/all/es5
185733382
ns/iter (± 10424065
)183218064
ns/iter (± 10863328
)1.01
es/full/all/es2015
154136607
ns/iter (± 9016202
)147884106
ns/iter (± 7444381
)1.04
es/full/all/es2016
151081432
ns/iter (± 7866636
)153115061
ns/iter (± 12288832
)0.99
es/full/all/es2017
155425260
ns/iter (± 8982686
)153898093
ns/iter (± 8911749
)1.01
es/full/all/es2018
147995556
ns/iter (± 7685094
)146330968
ns/iter (± 8550518
)1.01
es/full/all/es2019
145051661
ns/iter (± 6256725
)150378700
ns/iter (± 9408305
)0.96
es/full/all/es2020
135909805
ns/iter (± 8580548
)141467280
ns/iter (± 9412864
)0.96
es/full/parser
714619
ns/iter (± 23507
)709288
ns/iter (± 21974
)1.01
es/full/base/fixer
29474
ns/iter (± 1201
)28939
ns/iter (± 933
)1.02
es/full/base/resolver_and_hygiene
88210
ns/iter (± 1721
)88728
ns/iter (± 2335
)0.99
serialization of ast node
222
ns/iter (± 3
)227
ns/iter (± 2
)0.98
serialization of serde
228
ns/iter (± 4
)228
ns/iter (± 2
)1
This comment was automatically generated by workflow using github-action-benchmark.