SWC Bot
ca815650db
chore: Publish crates
2022-12-19 04:55:42 +00:00
Alexander Akait
352896f4cb
feat(css/compat): Support not
with multiple arguments ( #6668 )
2022-12-19 04:51:56 +00:00
SWC Bot
8008d863cb
chore: Publish crates
2022-12-19 04:19:38 +00:00
Alexander Akait
1d3e06aa88
fix(css/minifier): Fix a bug with a modern hash ( #6664 )
2022-12-19 13:15:23 +09:00
Donny/강동윤
23e27a9b28
chore: Publish crates
2022-12-18 16:41:37 +09:00
SWC Bot
fead4797b3
chore: Publish crates
2022-12-16 04:43:13 +00:00
Alexander Akait
2fd3ced40c
feat(css/minifier): Improve compression of media at-rules ( #6665 )
2022-12-16 04:39:48 +00:00
SWC Bot
b9b35899ad
chore: Publish crates
2022-12-16 04:07:27 +00:00
Alexander Akait
3d3863dc1f
feat(css/parser): Normalize dimension ( #6654 )
2022-12-16 04:04:07 +00:00
SWC Bot
779383ad4a
chore: Publish crates
2022-12-16 03:20:44 +00:00
Alexander Akait
39afc4627e
feat(css/compat): Support function notation ( #6651 )
2022-12-16 03:16:53 +00:00
SWC Bot
78f08bb1ec
chore: Publish crates
2022-12-16 02:38:02 +00:00
Alexander Akait
1fc97a7cea
feat(css/parser): Normalize declaration and important ( #6663 )
2022-12-16 02:34:18 +00:00
SWC Bot
3330f3ac70
chore: Publish crates
2022-12-16 00:34:51 +00:00
Alexander Akait
f6292e63b5
feat(css/minifier): Compress alpha in a hex ( #6653 )
2022-12-16 00:30:47 +00:00
SWC Bot
8ed88a766a
chore: Publish crates
2022-12-15 23:58:39 +00:00
Alexander Akait
87e1efd98c
test(css/parser): Add a test ( #6666 )
2022-12-16 08:55:05 +09:00
SWC Bot
fc6ed6b0c0
chore: Publish crates
2022-12-15 09:35:01 +00:00
Donny/강동윤
cb4173aa73
perf(es/minifier): Use rope-like structure for the name mangler ( #6661 )
2022-12-15 09:31:09 +00:00
SWC Bot
8e929ce6bd
chore: Publish crates
2022-12-15 08:35:11 +00:00
Alexander Akait
dd7280d5bd
fix(css/minifier): Don't remove custom variables with different case ( #6655 )
...
Co-authored-by: Donny/강동윤 <kdy1997.dev@gmail.com>
2022-12-15 08:31:43 +00:00
SWC Bot
139e35666c
chore: Publish crates
2022-12-15 07:53:24 +00:00
Donny/강동윤
bb9fab8d03
fix(es/minifier): Abort IIFE invoker completely on eval ( #6659 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6628 .
2022-12-15 07:49:58 +00:00
SWC Bot
327bd4fc98
chore: Publish crates
2022-12-15 06:58:32 +00:00
Alexander Akait
649438b76a
feat(css/parser): Normalize selector AST ( #6657 )
2022-12-15 06:55:22 +00:00
SWC Bot
3cefa62f64
chore: Publish crates
2022-12-15 05:24:21 +00:00
Alexander Akait
d4660a4673
refactor(css/prefixer): Use eq_ignore_span
( #6656 )
2022-12-15 05:20:59 +00:00
SWC Bot
d48f4ba7f6
chore: Publish crates
2022-12-15 04:37:28 +00:00
Alexander Akait
b257d5d591
feat(css/parser): Normalize hex colors ( #6652 )
2022-12-15 04:34:07 +00:00
SWC Bot
4db1d04082
chore: Publish crates
2022-12-14 15:09:10 +00:00
Alexander Akait
199ac74618
feat(css/prefixer): Support font-face format ( #6644 )
2022-12-14 15:05:35 +00:00
SWC Bot
863f9f8424
chore: Publish crates
2022-12-14 12:33:35 +00:00
SWC Bot
fa1b02bbd2
chore: Publish crates
2022-12-14 09:23:16 +00:00
Donny/강동윤
7f3e6983e5
test(es/minifier): Enable size tests created from creduce
( #6646 )
2022-12-14 09:19:51 +00:00
SWC Bot
b569cee03b
chore: Publish crates
2022-12-14 08:44:48 +00:00
Donny/강동윤
b13a079481
refactor(dbg-swc): Cleanup and document reducer ( #6647 )
2022-12-14 08:41:21 +00:00
SWC Bot
56ab0b032c
chore: Publish crates
2022-12-14 06:03:55 +00:00
Alexander Akait
5d0dc6e731
feat(css/prefixer): Support nested calc ( #6645 )
2022-12-14 06:00:06 +00:00
SWC Bot
db26f33304
chore: Publish crates
2022-12-14 05:25:20 +00:00
Alexander Akait
fe06b8061c
feat(css/compat): Support color with hex alpha ( #6643 )
2022-12-14 05:21:17 +00:00
SWC Bot
d831fb3cdd
chore: Publish crates
2022-12-14 04:49:13 +00:00
Donny/강동윤
e4e4d6cf6b
fix(es/minifier): Abort sequential inliner on optional chaining ( #6637 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6636 .
2022-12-14 04:45:47 +00:00
SWC Bot
4986694d4c
chore: Publish crates
2022-12-14 04:07:34 +00:00
HeYunfei
be5ea7fe17
fix(es/fixer): Add correct parens to OptChainExpr
in MemberExpr
( #6639 )
2022-12-14 04:03:36 +00:00
SWC Bot
30692bc26c
chore: Publish crates
2022-12-13 15:48:32 +00:00
Alexander Akait
c8b724f14d
feat(css/prefixer): Support display
( #6640 )
2022-12-13 15:44:57 +00:00
SWC Bot
4f39d82cd0
chore: Publish crates
2022-12-13 13:01:07 +00:00
Alexander Akait
2fee4d167a
feat(css/prefixer): Prefix percentage with opacity
( #6638 )
2022-12-13 12:57:32 +00:00
SWC Bot
292c3388b5
chore: Publish crates
2022-12-13 07:31:37 +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
SWC Bot
d33fb7e98c
chore: Publish crates
2022-12-13 06:53:51 +00:00
HeYunfei
08ccb8384c
chore(es/minifier): Expose globals_defs
pass ( #6633 )
2022-12-13 06:50:11 +00:00
SWC Bot
afe174d9f7
chore: Publish crates
2022-12-13 06:15:46 +00:00
Alexander Akait
d3fbfffb32
fix(css/minifier): Fix minification of @supports
at-rule ( #6632 )
2022-12-13 06:12:27 +00:00
SWC Bot
754c484eeb
chore: Publish crates
2022-12-13 05:02:07 +00:00
Donny/강동윤
a5f7b4b8aa
feat(css/compat): Support custom media queries ( #6625 )
...
Co-authored-by: alexander.akait <sheo13666q@gmail.com>
2022-12-13 04:58:34 +00:00
SWC Bot
c4ab41eca4
chore: Publish crates
2022-12-13 04:22:30 +00:00
Donny/강동윤
8b2e1d17e5
fix(es/minifier): Abort IIFE invoker on eval
( #6478 )
...
**Related issue:**
- https://github.com/vercel/next.js/issues/43052 .
2022-12-13 04:18:57 +00:00
SWC Bot
581d9ce769
chore: Publish crates
2022-12-13 03:38:21 +00:00
Alexander Akait
7d3aa66bb8
perf(html/minifier): Reduce allocations ( #6623 )
2022-12-13 12:34:55 +09:00
SWC Bot
b976551065
chore: Publish crates
2022-12-12 13:54:27 +00:00
Donny/강동윤
3f469fff0b
chore(atoms): Make sort.sh
cross-platform ( #6629 )
2022-12-12 13:50:36 +00:00
SWC Bot
3d943c8f16
chore: Publish crates
2022-12-12 13:15:09 +00:00
Alexander Akait
fb94694cf3
feat(css/minifier): Remove adjacent identical declarations ( #6619 )
2022-12-12 13:11:33 +00:00
SWC Bot
13fe17040c
chore: Publish crates
2022-12-12 06:30:21 +00:00
Donny/강동윤
b3bbd742bf
feat(css/compat): Add Compiler
( #6626 )
...
**Description:**
Visitor patterns are inherently slow, so I decided to merge all compatibility passes into a single pass.
2022-12-12 15:27:05 +09:00
SWC Bot
f6cd0dcb5c
chore: Publish crates
2022-12-12 05:55:23 +00:00
Alexander Akait
bfdafdbb89
perf(html/codegen): Reduce allocations ( #6622 )
2022-12-12 05:52:12 +00:00
SWC Bot
2a4b4a3792
chore: Publish crates
2022-12-12 05:09:19 +00:00
Alexander Akait
19c2ee593d
fix(html/parser): Fix parsing of CDATA in the svg context ( #6620 )
2022-12-12 05:05:40 +00:00
SWC Bot
c74ca2f23f
chore: Publish crates
2022-12-12 04:31:14 +00:00
Alexander Akait
59e8bf4976
fix(css/minifier): Fix compression of timing functions ( #6618 )
2022-12-12 04:27:13 +00:00
SWC Bot
bae04f54cf
chore: Publish crates
2022-12-12 03:53:42 +00:00
SWC Bot
74b853ab63
chore: Publish crates
2022-12-12 03:16:21 +00:00
Alexander Akait
208fd559ba
fix(css/minifier): Fix compressions of transform functions ( #6617 )
2022-12-12 03:13:01 +00:00
SWC Bot
4d4406d5b3
chore: Publish crates
2022-12-12 02:40:19 +00:00
Alexander Akait
cb49fa6f1d
feat(css/minifier): Support to
and from
with initial
( #6613 )
2022-12-12 02:36:48 +00:00
SWC Bot
2e50dd54e8
chore: Publish crates
2022-12-12 02:01:40 +00:00
Kevin Barabash
5c53a74f55
fix(es/codegen): Fix codegen of TypeScript mapped types ( #6621 )
2022-12-12 01:58:08 +00:00
SWC Bot
cacd0d1105
chore: Publish crates
2022-12-11 09:04:55 +00:00
SWC Bot
a5efa8af50
chore: Publish crates
2022-12-10 15:41:27 +00:00
Donny/강동윤
2bf7805980
feat(dbg-swc): Kill creduce
on drop ( #6614 )
2022-12-10 15:38:11 +00:00
SWC Bot
3d80fa4c25
chore: Publish crates
2022-12-10 00:55:14 +00:00
Alexander Akait
68d76afe5d
fix(es/codegen): Don't print trailing coma for a rest argument ( #6610 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6589 .
2022-12-10 00:51:11 +00:00
SWC Bot
fc21895bce
chore: Publish crates
2022-12-10 00:09:46 +00:00
Alexander Akait
c44f1d0a7f
fix(es/parser): Parse types in CallExpression
inside templates ( #6611 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6601 .
2022-12-10 00:05:25 +00:00
SWC Bot
66b52824e5
chore: Publish crates
2022-12-09 04:03:15 +00:00
SWC Bot
5d9cff21b5
chore: Publish crates
2022-12-09 02:30:36 +00:00
Donny/강동윤
b4eef53680
feat(css/ast): Make AST intuitive ( #6606 )
2022-12-09 02:27:19 +00:00
SWC Bot
fef8fc99a0
chore: Publish crates
2022-12-09 01:52:11 +00:00
HeYunfei
4c2d42261e
fix(es/compat): Prepend generated _loop
to the correct scope ( #6604 )
2022-12-09 01:48:29 +00:00
SWC Bot
394141bdc0
chore: Publish crates
2022-12-09 00:18:50 +00:00
SWC Bot
fbf83db0e7
chore: Publish crates
2022-12-08 05:51:07 +00:00
Donny/강동윤
538d63eb80
perf(css/codegen): Reduce allocations ( #6599 )
2022-12-08 05:47:35 +00:00
SWC Bot
6fadb48a52
chore: Publish crates
2022-12-08 05:15:03 +00:00
HeYunfei
fe0c65195d
fix(es/typescript): Strip inline type declarations ( #6600 )
2022-12-08 14:11:45 +09:00
SWC Bot
30d0d98405
chore: Publish crates
2022-12-08 02:15:57 +00:00
SWC Bot
96f9858639
chore: Publish crates
2022-12-07 23:43:51 +00:00
HeYunfei
29ba05d137
fix(es/resolver): Reset in_type
flag correctly ( #6597 )
2022-12-08 08:40:40 +09:00
SWC Bot
9cc5b928a6
chore: Publish crates
2022-12-07 11:57:23 +00:00
Alex Kirszenberg
e1d01d8b7a
feat(es/analyzer): Extract the analyzer from the minifier to a separate crate ( #6586 )
2022-12-07 11:53:49 +00:00
SWC Bot
da5e18e522
chore: Publish crates
2022-12-07 09:30:36 +00:00
Donny/강동윤
08b6eab010
perf(css/parser): Don't allocate for comparisons ( #6593 )
2022-12-07 09:27:06 +00:00
SWC Bot
31630ba913
chore: Publish crates
2022-12-07 03:48:23 +00:00
Alexander Akait
d8936ade5b
fix(css/parser): Avoid skipping extra whitespaces ( #6592 )
...
**Description:**
- Avoid skipping whitespaces in `[`/`(`/`{` because it is invalid. Whitespaces can be allowed and can be disallowed based on context, we can't apply this logic to any CSS context.
- Also, we already skip whitespaces where it is necessary.
- This also avoids extra actions.
2022-12-07 03:44:36 +00:00
SWC Bot
3abef05a8d
chore: Publish crates
2022-12-07 02:58:32 +00:00
Alexander Akait
4de378cb1e
fix(css/parser): Fix a small bug ( #6591 )
2022-12-07 02:53:41 +00:00
SWC Bot
8c4bf84ce5
chore: Publish crates
2022-12-07 02:21:48 +00:00
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