Commit Graph

33 Commits

Author SHA1 Message Date
Jason
a34f3592b3
feat(css/ast): Support @scope at-rule (#7837)
> ### Describe the feature
> [Chrome 118 is shipping
soon](https://chromium-review.googlesource.com/c/chromium/src/+/4790561),
which is expected to be one of the more popular CSS features, giving new
hope for style isolation of components.
> 
> * Explainer https://css.oddbird.net/scope/explainer
> * Specification https://drafts.csswg.org/css-cascade-6/#scope-atrule
> 

Closed: #7836
2023-08-24 08:18:35 +00:00
Jason
cfb7b511ee
feat(css/parser): Support @starting-style (#7677) 2023-07-20 14:55:50 +09:00
Donny/강동윤
041b491466
feat(es/parser): Implement explicit resource management (#7322)
**Description:**

 - Add `UsingDecl`.
 - Add `UsingDecl` to `Decl`.
 - Rename `VarDeclOrPat` to `ForHead`.
 - Add `UsingDecl` to `ForHead`.
 - Implement parser for using declarations.

**Related issue:**

 - #7316.
2023-05-10 04:16:44 +00:00
magic-akari
3ca954b9f9
fix(es/helpers): Use snake_case for helpers (#7147)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/7144.
 - Closes https://github.com/swc-project/swc/issues/7118.
2023-03-31 15:15:21 +09:00
Donny/강동윤
37533a23fd
feat(es/parser): Support auto accessors (#6981) 2023-02-28 06:39:25 +00:00
Hikaru Terazono (3c1u)
4771aa206a
fix(css/modules): Fix CSS animation on CSS Modules (#6969) 2023-02-21 14:36:22 +09:00
Alexander Akait
43e75194e5
feat(css/parser): Normalize at-rules (#6705) 2023-01-14 08:58:24 +00:00
Alexander Akait
ebebd60875
refactor(css/codegen): Do not use raw (#6674) 2022-12-22 01:36:36 +00:00
Alexander Akait
1c7f003779
feat(css/prefixer): Support overflow (#6678) 2022-12-21 03:00:53 +00:00
Alexander Akait
2571070148
feat(css/parser): Normalize and improve function name (#6667) 2022-12-20 12:43:58 +00:00
Alexander Akait
d27a270fec
perf(css/prefixer): Use JsWord instead of &str (#6658) 2022-12-20 06:09:02 +00:00
Alexander Akait
649438b76a
feat(css/parser): Normalize selector AST (#6657) 2022-12-15 06:55:22 +00:00
Alexander Akait
199ac74618
feat(css/prefixer): Support font-face format (#6644) 2022-12-14 15:05:35 +00:00
Alexander Akait
c8b724f14d
feat(css/prefixer): Support display (#6640) 2022-12-13 15:44:57 +00:00
Alexander Akait
704b3ceb9c
feat(css/compat): Implement compat pass for media ranges (#6631)
Co-authored-by: Donny/강동윤 <kdy1997.dev@gmail.com>
2022-12-13 07:28:02 +00:00
Alexander Akait
7d3aa66bb8
perf(html/minifier): Reduce allocations (#6623) 2022-12-13 12:34:55 +09:00
Donny/강동윤
3f469fff0b
chore(atoms): Make sort.sh cross-platform (#6629) 2022-12-12 13:50:36 +00:00
Alexander Akait
cb49fa6f1d
feat(css/minifier): Support to and from with initial (#6613) 2022-12-12 02:36:48 +00:00
HeYunfei
9154bbc111
fix(es/minifier): Avoid dropping statements which has side-effects (#6476) 2022-11-20 00:26:52 +00:00
Alexander Akait
782da5c83a
feat(html/minifier): Handle crossorigin (#6261) 2022-10-27 00:16:24 +00:00
Alexander Akait
6c170e59c7
refactor(css/ast): Refactor dashed ident (#6198) 2022-10-19 03:58:16 +00:00
Alexander Akait
0ba464d643
fix(html/minifier): Compress exportparts (#6187) 2022-10-18 14:48:47 +00:00
Alexander Akait
39cfade7f8
fix(css/modules): Fix parsing and refactor code (#6132) 2022-10-13 12:17:11 +09:00
Vincent Ricard
205a317c4d
feat(css/minifier): Compute calc expressions (#5966) 2022-10-12 10:03:14 +00:00
Alexander Akait
7343cf3389
perf(atoms): Add more atoms (#6122)
Co-authored-by: Donny/강동윤 <kdy1997.dev@gmail.com>
2022-10-11 23:52:51 +00:00
Alexander Akait
7d7c2d3a9c
perf(css/minifier): Merge all passes (#5971) 2022-09-28 22:54:08 +00:00
Donny/강동윤
5cddb4c734
feat(es/typescript): Support TS 4.9 (#5938)
**Description:**

This PR adds satisfaction expression to the AST and parser.
2022-09-23 16:41:56 +09:00
Jason
1dc5307069
feat(css/minifier): Minify the name of @keyframes (#5894)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/5889.

Co-authored-by: 一丝 <percyley@qq.com>
2022-09-22 03:12:50 +00:00
Alexander Akait
7f62fa6227
perf(html): Reduce memory usage (#5867) 2022-09-15 04:17:05 +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
magic-akari
bf1924d1a8
feat(es/typescript): Support optional variance annotations (#4008) 2022-03-23 14:36:37 +00:00
Donny/강동윤
4f70ee6d98
refactor: Flatten more packages (#2706) 2021-11-10 16:39:01 +09:00