Commit Graph

6326 Commits

Author SHA1 Message Date
Alexander Akait
d6e961368b
perf(html/parser): Optimize usage of buffers (#6590) 2022-12-07 02:18:31 +00:00
SWC Bot
d9c1c3a9bf chore: Publish crates 2022-12-07 01:48:18 +00:00
Alexander Akait
252edb550b
perf(css/parser): Reduce number of function calls (#6587) 2022-12-07 01:45:03 +00:00
SWC Bot
259eb87bd6 chore: Publish crates 2022-12-07 01:03:25 +00:00
Alexander Akait
f383836bad
chore(css/lexer): Fix typo (#6588) 2022-12-07 00:59:29 +00:00
SWC Bot
29d67206ba chore: Publish crates 2022-12-06 14:31:09 +00:00
Donny/강동윤
64796701e4
perf(css/parser): Reduce clones and allocations (#6585)
**Description:**

 - We use `(BytePos, BytePos)` instead of `Box<Span>`.
 - We use `Cow` for `Input`.
2022-12-06 14:27:45 +00:00
SWC Bot
79b2279470 chore: Publish crates 2022-12-06 13:08:27 +00:00
Donny/강동윤
78955995a2
perf(css/minifier): Improve performance (#6583) 2022-12-06 13:04:34 +00:00
SWC Bot
824979f92b chore: Publish crates 2022-12-06 12:28:41 +00:00
Donny/강동윤
d8adc58011
chore(ci): Fix benchmark action (#6582) 2022-12-06 12:24:55 +00:00
SWC Bot
6e5abdd9cc chore: Publish crates 2022-12-06 11:51:49 +00:00
Donny/강동윤
4171ee7fb3
perf(css/minifier): Remove more redundant clones (#6580) 2022-12-06 20:48:00 +09:00
SWC Bot
866fd09bad chore: Publish crates 2022-12-06 06:23:44 +00:00
Donny/강동윤
70ac0286e5
perf(css/minifier): Remove redundant clone (#6579) 2022-12-06 15:20:05 +09:00
SWC Bot
a475f61ac3 chore: Publish crates 2022-12-06 02:01:49 +00:00
Alexander Akait
8633d27df0
perf(css/ast): Reduce token size (#6569) 2022-12-06 01:58:29 +00:00
SWC Bot
9d0247a394 chore: Publish crates 2022-12-06 00:54:17 +00:00
Alexander Akait
ad95ead291
fix(es/parser): Fix parsing of JSX with ASI (#6577)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6522.
2022-12-06 09:50:26 +09:00
SWC Bot
c3dd8ffe79 chore: Publish crates 2022-12-05 00:17:56 +00:00
IWANABETHATGUY
586bfd5480
refactor(es/minifier): Remove unnecessary code (#6575) 2022-12-05 00:14:51 +00:00
SWC Bot
2379fc1fd9 chore: Publish crates 2022-12-04 05:55:52 +00:00
Justin Ridgewell
a203fdb1b6
fix(common): Fix BytePos -> CharPos calculations (#6574)
**Description:**

This fixes the BytePos -> CharPos calculation necessary for source maps.
There were a few issues in the old code:

1. UTF-8 maps 1-3 bytes into 1 UTF-16 char, but 4 bytes into 2 UTF-16 chars
2. The starting offset was not recorded when we reached the end of the `multibyte_chars` iteration
3. The `mappings` can be unordered, meaning we need to restart the UTF-16 offset calculation

**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6552.
2022-12-04 14:52:00 +09:00
SWC Bot
8bee06f78f chore: Publish crates 2022-12-03 03:56:24 +00:00
Alexander Akait
01232f0988
fix(xml/parser): Fix various bugs (#6566) 2022-12-03 03:52:48 +00:00
SWC Bot
cffa11122b chore: Publish crates 2022-12-03 00:26:38 +00:00
Justin Ridgewell
b3ea52f863
refactor(common): Cleanup source_map.rs (#6570) 2022-12-03 00:23:06 +00:00
SWC Bot
ab5635c6eb chore: Publish crates 2022-12-02 14:55:20 +00:00
Donny/강동윤
fa8f7b00fc
feat(css/plugin): Support Wasm plugin (#6568) 2022-12-02 12:45:17 +00:00
SWC Bot
2d36c3fb02 chore: Publish crates 2022-12-02 10:18:01 +00:00
Donny/강동윤
8cdc28cdfa
feat(css/plugin): Prepare Wasm plugins (#6567) 2022-12-02 10:14:46 +00:00
SWC Bot
ab2e19b601 chore: Publish crates 2022-12-02 08:01:39 +00:00
Donny/강동윤
4af52c79ae
fix(common): Fix handling of input source maps (#6561)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/4578.
 - Closes https://github.com/swc-project/swc/issues/6244.
 - https://github.com/vercel/next.js/issues/39878.

Co-authored-by: Justin Ridgewell <justin@ridgewell.name>
2022-12-02 07:58:02 +00:00
SWC Bot
d00b29120a chore: Publish crates 2022-12-02 05:00:20 +00:00
Alexander Akait
cdf0d8a8b5
fix(xml/parser): Fix parsing of legacy document types (#6555) 2022-12-02 04:56:34 +00:00
SWC Bot
a9cccb08f5 chore: Publish crates 2022-12-02 04:30:50 +00:00
Alexander Akait
4d422b6228
test(css/parser): Move vendor tests (#6564) 2022-12-02 04:27:09 +00:00
SWC Bot
974406a7c5 chore: Publish crates 2022-12-02 03:56:52 +00:00
Alexander Akait
a1fe9076c2
fix(css/parser): Fix parsing of nested rules (#6563) 2022-12-02 03:52:54 +00:00
SWC Bot
92877096fe chore: Publish crates 2022-12-01 06:30:18 +00:00
Alexander Akait
db1eb483fd
fix(css/parser): Fix recovery more for invalid component values in declaration value (#6560) 2022-12-01 06:26:47 +00:00
SWC Bot
9a4fe8913e chore: Publish crates 2022-12-01 05:57:56 +00:00
Alexander Akait
49b7e9e224
feat(html/parser): Improve lexer (#6543) 2022-12-01 05:54:44 +00:00
SWC Bot
253f309823 chore: Publish crates 2022-12-01 05:04:57 +00:00
Alexander Akait
85a03e71b7
refactor(xml/parser): Simplify logic for parsing elements (#6557) 2022-12-01 05:01:48 +00:00
SWC Bot
967a9dc231 chore: Publish crates 2022-12-01 04:24:28 +00:00
Donny/강동윤
85875897f1
chore(ci): Fix CI (#6558) 2022-12-01 04:21:19 +00:00
SWC Bot
40d7cda38e chore: Publish crates 2022-11-30 21:03:13 +00:00
OJ Kwon
80834843f4
chore(ci): Add debug logs for cli binaries (#6556) 2022-11-30 20:58:54 +00:00
Donny/강동윤
cd9a6b372a chore: Publish crates 2022-12-01 05:26:50 +09:00