Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf(html/minifier): improve #6623

Merged
merged 4 commits into from
Dec 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
125 changes: 125 additions & 0 deletions crates/swc_atoms/words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,9 @@ abbr
abstract
accent-color
accept
accesskey
acronym
action
actuate
add
address
Expand Down Expand Up @@ -647,6 +649,9 @@ apply
arcrole
area
arguments
aria-describedby
aria-labelledby
aria-owns
article
as
aside
Expand All @@ -660,6 +665,7 @@ attributename
attributetype
audio
auto
autocomplete
await
azimuth
b
Expand All @@ -685,6 +691,7 @@ baseprofile
bdi
bdo
before
begin
bgsound
big
bigint
Expand Down Expand Up @@ -778,6 +785,7 @@ charset
circle
cite
class
classid
clear
clip
clip-path
Expand All @@ -787,12 +795,15 @@ clippath
clippathunits
cm
code
codebase
col
colgroup
color
color-mix
color-profile
color-scheme
cols
colspan
column-count
column-gap
column-rule-color
Expand Down Expand Up @@ -827,6 +838,7 @@ currentColor
currentcolor
cursor
custom-media
d
data
datalist
dd
Expand Down Expand Up @@ -997,6 +1009,7 @@ forced-color-adjust
foreignObject
foreignobject
form
formaction
frame
frameset
from
Expand Down Expand Up @@ -1094,6 +1107,7 @@ intrinsic
is
isindex
isolation
itemid
itemprop
itemref
itemtype
Expand Down Expand Up @@ -1158,6 +1172,7 @@ list-style-image
list-style-type
listing
local
longdesc
lr
lr-tb
ltr
Expand Down Expand Up @@ -1227,6 +1242,7 @@ max-height
max-inline-size
max-lines
max-width
maxlength
media
medium
menu
Expand Down Expand Up @@ -1285,7 +1301,106 @@ offset-rotate
oklab
oklch
ol
onabort
onafterprint
onautocomplete
onautocompleteerror
onauxclick
onbeforematch
onbeforeprint
onbeforeunload
onbegin
onblur
oncancel
oncanplay
oncanplaythrough
onchange
onclick
onclose
oncontextlost
oncontextmenu
oncontextrestored
oncopy
oncuechange
oncut
ondblclick
ondrag
ondragend
ondragenter
ondragexit
ondragleave
ondragover
ondragstart
ondrop
ondurationchange
onemptied
onend
onended
onerror
onfocus
onformdata
onhashchange
oninput
oninvalid
onkeydown
onkeypress
onkeyup
onlanguagechange
onload
onloadeddata
onloadedmetadata
onloadstart
only
onmessage
onmessageerror
onmousedown
onmouseenter
onmouseleave
onmousemove
onmouseout
onmouseover
onmouseup
onmousewheel
onoffline
ononline
onpagehide
onpageshow
onpaste
onpause
onplay
onplaying
onpopstate
onprogress
onratechange
onreadystatechange
onrejectionhandled
onrepeat
onreset
onresize
onscroll
onsecuritypolicyviolation
onseeked
onseeking
onselect
onshow
onslotchange
onsort
onstalled
onstorage
onsubmit
onsuspend
ontimeupdate
ontoggle
onunhandledrejection
onunload
onvisibilitychange
onvolumechange
onwaiting
onwebkitanimationend
onwebkitanimationiteration
onwebkitanimationstart
onwebkittransitionend
onwheel
opacity
optgroup
option
Expand Down Expand Up @@ -1331,6 +1446,7 @@ page-break-after
page-break-before
page-break-inside
paint-order
panose-1
param
part
path
Expand All @@ -1346,6 +1462,7 @@ patternunits
pc
perspective
picture
ping
place-content
place-items
place-self
Expand All @@ -1362,6 +1479,7 @@ pointsatz
polygon
polyline
position
poster
pre
preload
preserveAlpha
Expand All @@ -1372,6 +1490,7 @@ primitiveUnits
primitiveunits
private
process
profile
progress
property
protected
Expand Down Expand Up @@ -1432,6 +1551,8 @@ rotatez
round
row
row-gap
rows
rowspan
rp
rt
rtc
Expand Down Expand Up @@ -1525,6 +1646,7 @@ spreadMethod
spreadmethod
src
srcdoc
srcset
start
startOffset
startoffset
Expand Down Expand Up @@ -1565,6 +1687,7 @@ symbol
systemLanguage
systemlanguage
tab-size
tabindex
table
table-layout
tableValues
Expand Down Expand Up @@ -1660,7 +1783,9 @@ unknown
unset
url
use
usemap
user-select
values
var
vb
vertical-align
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@
"name": "__local__c"
}
],
"d": [
{
"type": "local",
"name": "__local__d"
}
],
"y": [
{
"type": "local",
Expand All @@ -46,5 +40,11 @@
"type": "local",
"name": "__local__x"
}
],
"d": [
{
"type": "local",
"name": "__local__d"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@
4 | }
`----

x Ident { value: Atom('d' type=inline), raw: "d" }
x Ident { value: Atom('d' type=static), raw: "d" }
,-[$DIR/tests/fixture/vendor/esbuild/misc/L0mEf41IMkWcP7NotllkAg/input.css:2:1]
2 | a: b;
3 | c: d;
Expand Down
Loading