Donny/강동윤
d1097ccb59
feat(css/parser): Store lexed comments ( #8091 )
...
**Description:**
For now, we leave every comment as a leading comment. As logic for determining leading vs trailing is quite complex, I'll do it with another PR.
2023-10-10 11:42:20 +00:00
Donny/강동윤
84cec8766d
refactor(atoms): Remove usage of js_word!
to drop string-cache
( #7976 )
...
**Description:**
This PR is to prepare removal of `string-cache`. Actually, this PR does not remove it. Instead, this PR only removes direct usages of `js_word!`s, especially in patterns.
**Related issue:**
- #4946 .
2023-10-08 00:39:51 +00:00
Alexander Akait
8af627d5c4
feat(css/parser): Normalize urange ( #6704 )
2022-12-27 12:22:46 +00:00
Alexander Akait
2571070148
feat(css/parser): Normalize and improve function name ( #6667 )
2022-12-20 12:43:58 +00:00
Alexander Akait
c01464e452
feat(css/parser): Normalize URL functions ( #6675 )
2022-12-19 07:53:29 +00:00
Alexander Akait
3d3863dc1f
feat(css/parser): Normalize dimension ( #6654 )
2022-12-16 04:04:07 +00:00
Alexander Akait
cb49fa6f1d
feat(css/minifier): Support to
and from
with initial
( #6613 )
2022-12-12 02:36:48 +00:00
Donny/강동윤
b4eef53680
feat(css/ast): Make AST intuitive ( #6606 )
2022-12-09 02:27:19 +00:00
Alexander Akait
252edb550b
perf(css/parser): Reduce number of function calls ( #6587 )
2022-12-07 01:45:03 +00:00
Alexander Akait
8633d27df0
perf(css/ast): Reduce token size ( #6569 )
2022-12-06 01:58:29 +00:00
Donny/강동윤
7ee86d1d25
test: Use correct extensions for fixture tests ( #6539 )
2022-11-29 09:47:56 +00:00
Donny/강동윤
b8fe04f720
feat(common): Add contexts to the error messages ( #6526 )
...
**Description:**
This PR makes the error reporter print contexts.
**Related issue:**
- https://github.com/swc-project/swc/issues/6525 .
2022-11-29 00:56:47 +09:00
Alexander Akait
ec2c021255
perf(css/ast): Use Atom
for raw
values ( #6401 )
2022-11-11 01:24:11 +00:00
Alexander Akait
bea6cce0c6
perf(css): Reduce size of tokens ( #6384 )
2022-11-10 01:36:53 +00:00
Alexander Akait
6cafeb2bcc
refactor(css/parser): Refactor even more ( #6288 )
2022-10-29 08:28:39 +00:00
Alexander Akait
2813acccc2
fix(css/parser): Fix various issues ( #6281 )
2022-10-28 04:34:23 +00:00
Alexander Akait
c3944ba239
fix(css/parser): Fix parsing of colors ( #6260 )
2022-10-27 01:55:06 +00:00
Alexander Akait
4c293f965b
test(css/parser): Add tests for refactoring ( #6262 )
2022-10-26 22:58:59 +00:00
Alexander Akait
e4fe8403d7
refactor(css/parser): Fix parsing of declarations ( #6234 )
2022-10-22 22:50:19 +00:00
Alexander Akait
ac619e88bf
refactor(css/parser): Use new approach for parsing invalid tokens ( #6224 )
...
Co-authored-by: Donny/강동윤 <kdy1997.dev@gmail.com>
2022-10-22 04:21:40 +00:00
Alexander Akait
6c170e59c7
refactor(css/ast): Refactor dashed ident ( #6198 )
2022-10-19 03:58:16 +00:00
Alexander Akait
e63fa28008
fix(css/ast): Fix AST types for simple block ( #6131 )
2022-10-13 05:31:34 +00:00
Vincent Ricard
205a317c4d
feat(css/minifier): Compute calc
expressions ( #5966 )
2022-10-12 10:03:14 +00:00
Alexander Akait
7d7c2d3a9c
perf(css/minifier): Merge all passes ( #5971 )
2022-09-28 22:54:08 +00:00
Alexander Akait
ccd618ce54
perf(html/minifier): Improve performance ( #5838 )
2022-09-13 14:01:41 +09:00
Donny/강동윤
7391cc99b1
perf(css/minifier): Use JsWord
instead of &str
( #5806 )
2022-09-10 07:20:51 +00:00
Alexander Akait
5c28d00516
fix(css/parser): Improve parsing of media queries ( #5567 )
2022-08-30 03:18:43 +00:00
Alexander Akait
b65a16c7aa
feat(css/ast): Make raw
optional ( #5211 )
2022-07-15 11:22:59 +00:00
Alexander Akait
e083d0eb5a
fix(css/parser): Fix parsing of constant function ( #4856 )
2022-06-01 00:34:20 +00:00
Pig Fang
07d31aa50a
fix(css/parser): Allow var()
call in color functions ( #4713 )
2022-05-23 16:00:44 +00:00
Donny/강동윤
67942d5731
feat(common): Reserve BytePos(0)
for dummy spans ( #4616 )
2022-05-11 16:14:42 +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
Edwin Coronado
57802cfcce
fix(common): Fix the line number of errors ( #4082 )
2022-03-19 23:56:12 +09:00
Alexander Akait
a4bc0927a0
feat(css): Supports more color notations ( #4009 )
2022-03-14 14:30:09 +00:00
Donny/강동윤
40b8a4e596
feat(common): Implement a pretty error reporter ( #3946 )
2022-03-13 19:07:18 +00:00
Alexander Akait
516dbc65dc
feat(css/codegen): Fix source maps and ast defs ( #3974 )
2022-03-11 16:54:33 +00:00
Alexander Akait
3df887ca37
feat(css): Support color functions ( #3836 )
2022-03-04 06:24:22 +09:00
Alexander Akait
3ec45a6858
feat(css/ast): Union Value
and ComponentValue
( #3804 )
2022-03-01 15:26:17 +00:00
Alexander Akait
91cf965e07
feat(css/ast): Improve type definitions for unicode ranges ( #3757 )
2022-02-27 14:16:22 +09:00
Alexander Akait
f258ee4729
fix(css): Fix processing of integers ( #3752 )
2022-02-26 13:51:59 +00:00
Alexander Akait
003a7b85a4
feat(css/ast): Improve parsing of colors ( #3680 )
2022-02-22 19:45:33 +00:00
Alexander Akait
e97074b6c3
feat(css/ast): Use SimpleBlock
in more places ( #3575 )
2022-02-16 12:40:16 +09:00
Alexander Akait
aed622be2f
refactor(css/ast): Rename tokens to match spec ( #3553 )
2022-02-14 13:05:16 +00:00
Alexander Akait
37c49e876c
refactor(css/ast): Unify SimpleBlock
and Block
completely ( #3531 )
2022-02-11 22:31:51 +09:00
Alexander Akait
57f6a581fa
refactor(css/ast): Unify SimpleBlock
and Block
( #3519 )
2022-02-11 03:58:26 +00:00
Alexander Akait
92a3cb9609
refactor(css/ast): Remove Tokens
in favor of Vec<TokenAndSpan>
( #3507 )
2022-02-10 11:25:19 +00:00
Alexander Akait
cbe302b99d
feat(css): Support urange syntax ( #3491 )
2022-02-09 12:23:14 +00:00
Alexander Akait
460f846934
refactor(css/ast): Rename types to match specification ( #3484 )
2022-02-09 19:43:15 +09:00
Alexander Akait
04782ae9f7
test(css/parser): Add tests from postcss
( #3488 )
2022-02-09 03:25:54 +00:00
Alexander Akait
dc939c65af
feat(css/ast): Add types for all dimensions ( #3477 )
2022-02-08 11:57:57 +00:00