Commit Graph

4158 Commits

Author SHA1 Message Date
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
SWC Bot
40d7cda38e chore: Publish crates 2022-11-30 21:03:13 +00:00
Donny/강동윤
cd9a6b372a chore: Publish crates 2022-12-01 05:26:50 +09:00
SWC Bot
912743aadb chore: Publish crates 2022-11-30 17:13:08 +00:00
Alexander Akait
aa28aa0c7f
fix(es/parser): Fix typeof in TSCallSignatureDeclaration (#6553)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6430
2022-11-30 17:09:53 +00:00
SWC Bot
2551eb182a chore: Publish crates 2022-11-30 09:34:03 +00:00
IWANABETHATGUY
9b58cce10b
chore(swc_core): Reexport more modules (#6548) 2022-11-30 09:30:02 +00:00
SWC Bot
171733e8bb chore: Publish crates 2022-11-30 07:50:13 +00:00
Donny/강동윤
cddbc41430
test(es/typescript): Migrate inline tests to fixture tests (#6546) 2022-11-30 07:46:33 +00:00
SWC Bot
25fa08017a chore: Publish crates 2022-11-30 07:13:15 +00:00
OJ Kwon
d730186e9f
build(cargo): Update browerslist-rs (#6547)
Co-authored-by: Donny/강동윤 <kdy1997.dev@gmail.com>
2022-11-30 07:09:44 +00:00
SWC Bot
0548db10e8 chore: Publish crates 2022-11-30 05:49:50 +00:00
Donny/강동윤
8d8f150792
test(es/minifier): Add tests for preserving top-level directives (#6545) 2022-11-30 05:46:48 +00:00
SWC Bot
7bc840d3b9 chore: Publish crates 2022-11-30 05:10:51 +00:00
Alexander Akait
251e98c055
refactor(css/parser): Canonicalize only if required (#6532) 2022-11-30 05:07:46 +00:00
SWC Bot
a19ff0843c chore: Publish crates 2022-11-30 04:31:30 +00:00
Donny/강동윤
ae6322064d
feat(es/preset-env): Update data (#6538) 2022-11-30 04:27:59 +00:00
SWC Bot
a03d990a6c chore: Publish crates 2022-11-29 11:21:26 +00:00
SWC Bot
4c6e516896 chore: Publish crates 2022-11-29 09:51:24 +00:00
Donny/강동윤
7ee86d1d25
test: Use correct extensions for fixture tests (#6539) 2022-11-29 09:47:56 +00:00
SWC Bot
1393a7ce28 chore: Publish crates 2022-11-29 07:54:57 +00:00
Alexander Akait
7f8c4e04b2
feat(xml/parser): Parse cdata section (#6531) 2022-11-29 07:51:42 +00:00
SWC Bot
180f6740c1 chore: Publish crates 2022-11-29 07:04:40 +00:00
Yongwook Choi (Leo)
81224b5d67
fix(es/minifier): Don't convert a signed integer literal key to a numeric literal (#6529)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6528.
2022-11-29 07:01:30 +00:00
SWC Bot
6ca36c198b chore: Publish crates 2022-11-29 06:00:22 +00:00