Commit Graph

52 Commits

Author SHA1 Message Date
Donny/강동윤
aa22746d03
perf(atoms): Replace string-cache with hstr (#8126)
**Description:**

`hstr` is an alternative for `string-cache` which does not support static strings and does not use a global mutex.
 
**Related issue:**

 - Closes #4946.
 - Closes #7974.
2023-11-07 00:51:43 +00:00
Donny/강동윤
14ea705f27
build(cargo): Update rustc to nightly-2023-11-04 (#8221)
**Breaking Changes**:

 - `Mark::default()` is now identical as `Mark::new()`.

**Description:**

I want to see if inlining is improved
2023-11-04 21:47:10 +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
Donny/강동윤
b34f1adbcc
build(cargo): Update rustc to 2023-07-03 (#7623) 2023-07-05 03:50:43 +00:00
Donny/강동윤
d545df6dd9
perf(css/prefixer): Convert macro to a function call to reduce binary size (#7507)
**Related issue:**

 - https://github.com/vercel/next.js/pull/50365
2023-06-08 03:26:19 +00:00
Alexander Akait
43e75194e5
feat(css/parser): Normalize at-rules (#6705) 2023-01-14 08:58:24 +00:00
Alexander Akait
1722428909
feat(css/prefixer): Support clamp (#6695) 2022-12-27 12:55:46 +00:00
Alexander Akait
27a8b7e50b
feat(css/prefixer): Support page break (#6693) 2022-12-21 14:00:59 +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
d8df1b53d1
feat(css/prefixer): Support place-* properties (#6685) 2022-12-20 11:32:31 +00:00
Alexander Akait
d27a270fec
perf(css/prefixer): Use JsWord instead of &str (#6658) 2022-12-20 06:09:02 +00:00
Alexander Akait
7f8ba9c22c
feat(css/parser): Normalize at-rule names (#6676) 2022-12-19 08:30:06 +00:00
Alexander Akait
46241b4e55
feat(css/prefixer): Support word-wrap (#6679) 2022-12-19 14:51:56 +09:00
Alexander Akait
3d3863dc1f
feat(css/parser): Normalize dimension (#6654) 2022-12-16 04:04:07 +00:00
Alexander Akait
1fc97a7cea
feat(css/parser): Normalize declaration and important (#6663) 2022-12-16 02:34:18 +00:00
Alexander Akait
d4660a4673
refactor(css/prefixer): Use eq_ignore_span (#6656) 2022-12-15 05:20:59 +00:00
Alexander Akait
199ac74618
feat(css/prefixer): Support font-face format (#6644) 2022-12-14 15:05:35 +00:00
Alexander Akait
5d0dc6e731
feat(css/prefixer): Support nested calc (#6645) 2022-12-14 06:00:06 +00:00
Alexander Akait
c8b724f14d
feat(css/prefixer): Support display (#6640) 2022-12-13 15:44:57 +00:00
Alexander Akait
2fee4d167a
feat(css/prefixer): Prefix percentage with opacity (#6638) 2022-12-13 12:57:32 +00:00
Donny/강동윤
b4eef53680
feat(css/ast): Make AST intuitive (#6606) 2022-12-09 02:27:19 +00:00
Donny/강동윤
08b6eab010
perf(css/parser): Don't allocate for comparisons (#6593) 2022-12-07 09:27:06 +00:00
Alexander Akait
8633d27df0
perf(css/ast): Reduce token size (#6569) 2022-12-06 01:58:29 +00:00
Alexander Akait
f4832247bc
fix(css/parser): Fix parsing of supports() (#6333) 2022-11-08 01:32:48 +00:00
Alexander Akait
2813acccc2
fix(css/parser): Fix various issues (#6281) 2022-10-28 04:34:23 +00:00
Donny/강동윤
d6fd476721
chore(ci): Deny clippy warnings (#6126) 2022-10-12 04:59:54 +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
Donny/강동윤
2b627524ac
feat(es/minifier): Ignore return values of ignored IIFEs (#6020)
**Description:**

As we are not using the return value of the function, we can call `ignore_return_value` on the argument of the return statements of IIFE.
2022-10-02 20:01:56 +09:00
Alexander Akait
b3a05a057a
feat(css/codegen): Minify idents (#5972) 2022-09-29 01:35:33 +00:00
Donny/강동윤
3c3529cb84
build(rustc): Update rustc (#5943)
**Description:**

This PR updates rustc, and fix some performance bugs of `swc_common`.
2022-09-24 03:33:47 +00:00
Donny/강동윤
4f119b2693
perf(css): Optimize memory layout of ast types (#5823) 2022-09-11 13:56:48 +00:00
Alexander Akait
a3c1ac67d7
feat(css/ast): Make keyword optional (#5543) 2022-08-20 01:49:27 +00:00
Alexander Akait
0985c1546b
fix(css/prefixer): Reduce duplicates (#5537) 2022-08-18 07:06:18 +09:00
Alexander Akait
674c788654
feat(css/prefixer): Support more env properties and values (#5512) 2022-08-17 12:35:39 +00:00
Alexander Akait
dc98234fab
fix(css/prefixer): Handle supports (#5503) 2022-08-17 07:09:44 +00:00
Alexander Akait
07732d6a0a
feat(css/prefixer): Avoid prefixing general functions (#5319) 2022-08-01 03:26:29 +00:00
Alexander Akait
8e12e52a57
feat(css/prefixer): Prefix more properties (#5340) 2022-07-30 06:40:02 +00:00
Alexander Akait
b18172d761
fix(css/prefixer): Generate prefixes for selectors using env (#5307) 2022-07-29 16:28:58 +09:00
Alexander Akait
925b16a563
fix(css/prefixer): Avoid prefixes for media features (#5308) 2022-07-28 01:02:26 +00:00
Alexander Akait
94b4e0a321
fix(css/prefixer): Generate at-rules based on preset-env (#5294) 2022-07-27 04:43:22 +00:00
Alexander Akait
e78d23d193
feat(css/prefixer): Implement preset-env (#5247) 2022-07-20 12:12:40 +09:00
Alexander Akait
b65a16c7aa
feat(css/ast): Make raw optional (#5211) 2022-07-15 11:22:59 +00:00
LongYinan
db9f7a5ad4
chore(ci): Fix publish build on Windows (#4970) 2022-06-14 15:58:10 +00:00
Donny/강동윤
f847709787
chore(common): Update rustc (#4828) 2022-05-28 07:07:58 +00:00
Alexander Akait
90ac93af12
fix(css/prefixer): Add prefix for print-color-adjust (#4503) 2022-05-03 10:23:50 +09:00
Alexander Akait
405e5ed0b3
fix(css/prefixer): Fix more bugs (#4330) 2022-04-14 13:10:30 +09:00
Alexander Akait
ac4f14ad7b
fix(css/prefixer): Handle at-rules and don't generate unnecessary prefixes (#4318) 2022-04-13 08:28:09 +00:00
Alexander Akait
690ce2628c
fix(css/prefixer): Don't prefix if it's already prefixed (#4307) 2022-04-11 19:12:12 +00:00
Alexander Akait
7f38e06e02
fix(css/prefixer): FIx a bug related to writing-mode (#4278) 2022-04-08 06:53:38 +00:00