Commit Graph

820 Commits

Author SHA1 Message Date
Donny/강동윤
8dab3d92b1
perf(es/minifier): Remove useless operations like eager call to .span() (#3512)
swc_ecma_minifier:
 - Merge variable for inlining.
 - Remove useless call to `.span()`.
2022-02-10 12:00:41 +00:00
SWC Bot
67c508429a chore: Publish crates 2022-02-10 20:27:33 +09:00
Alexander Akait
92a3cb9609
refactor(css/ast): Remove Tokens in favor of Vec<TokenAndSpan> (#3507) 2022-02-10 11:25:19 +00:00
SWC Bot
2a609d2951 chore: Publish crates 2022-02-10 17:35:42 +09:00
Donny/강동윤
80ed69d67d
chore(build): Disable LTO for local builds (#3514) 2022-02-10 17:35:15 +09:00
Alexander Akait
2d997b3806
refactor(css/parser): Refactor code for error recovery (#3508) 2022-02-10 07:36:29 +00:00
SWC Bot
eb3401c3b2 chore: Publish crates 2022-02-10 16:05:48 +09:00
OJ Kwon
bc250262f2
feat(plugin): implement proxy for Mark and SyntaxContext (#3511) 2022-02-10 06:57:42 +00:00
Alexander Akait
ebd71d565d
test(css/codegen): Add tests for multiple keyframe selectors (#3509) 2022-02-10 05:39:54 +00:00
SWC Bot
69181e822c chore: Publish crates 2022-02-10 13:55:12 +09:00
Alexander Akait
4e124c7bca
refactor(css/parser): Refactor codes related to simple blocks (#3506) 2022-02-10 13:54:46 +09:00
William Tetlow
5488159ba5
feat(es/minifier): Implement reserved mangle option (#3476) 2022-02-10 13:53:47 +09:00
SWC Bot
cc3b1dfd69 chore: Publish crates 2022-02-10 13:52:54 +09:00
Artur
205b76e78d
feat(es/lints): Implement no-use-before-define rule (#3456) 2022-02-10 04:52:11 +00:00
Alexander Akait
8b438ea024
test(css/parser): Add some tests from postcss (#3501) 2022-02-09 14:41:28 +00:00
SWC Bot
df37b4472d chore: Publish crates 2022-02-09 22:00:13 +09:00
Alexander Akait
cbe302b99d
feat(css): Support urange syntax (#3491) 2022-02-09 12:23:14 +00:00
SWC Bot
6c5ebbbbf8 chore: Publish crates 2022-02-09 20:37:38 +09:00
SWC Bot
d72c0beccf chore: Publish crates 2022-02-09 20:32:33 +09:00
Donny/강동윤
8fbdbcd42f chore: Publish crates 2022-02-09 20:28:02 +09:00
Artur
5bb6bd71b6
feat(es/lints): Implement dot-notation rule (#3481) 2022-02-09 11:24:58 +00:00
Donny/강동윤
8dbc949cfe chore: Publish crates 2022-02-09 19:43:50 +09:00
Alexander Akait
460f846934
refactor(css/ast): Rename types to match specification (#3484) 2022-02-09 19:43:15 +09:00
Donny/강동윤
9b76783281
refactor(common): Cleanup & rustfmt (#3495)
swc_common:
 - Merge identical source codes.

swc_css_parser:
 - Deny `clippy::all`.
 - Fix lints.
2022-02-09 06:33:32 +00:00
Donny/강동윤
5e82640b42 chore: Publish crates 2022-02-09 13:57:21 +09:00
OJ Kwon
494b4c8203
feat(swc/plugin): Implement proxy for Mark::fresh (#3492) 2022-02-09 13:56:39 +09:00
magic-akari
fa0216d908
fix(es/modules): Hoist named exports (#3479) 2022-02-09 04:50:33 +00:00
Donny/강동윤
e8c15356e3 chore: Publish crates 2022-02-09 12:59:55 +09:00
Alexander Akait
48e5b903e2
feat(css/parser): Improve error recovery (#3486) 2022-02-09 03:49:59 +00:00
Alexander Akait
04782ae9f7
test(css/parser): Add tests from postcss (#3488) 2022-02-09 03:25:54 +00:00
Donny/강동윤
e9ceb57584 chore: Publish crates 2022-02-09 12:01:52 +09:00
RiESAEX
ff6eb272a0
fix(es/modules): Use correct StrKind after rewriting import path (#3489) 2022-02-09 12:01:22 +09:00
Donny/강동윤
12e52e171d chore: Publish v1.2.138 2022-02-09 02:10:54 +09:00
Donny/강동윤
c2a3b0d66c chore: Publish crates 2022-02-09 00:47:41 +09:00
Austaras
26565b1ae9
feat(es/parser): Disallow assignment to optional chaining expressions (#3483) 2022-02-08 12:51:26 +00:00
Donny/강동윤
cd81a6ba89 chore: Publish crates 2022-02-08 21:05:12 +09:00
Alexander Akait
dc939c65af
feat(css/ast): Add types for all dimensions (#3477) 2022-02-08 11:57:57 +00:00
Donny/강동윤
f8c62b6cac chore: Publish crates 2022-02-08 20:29:10 +09:00
Alexander Akait
fd5668c32f
feat(css): Add support for @property at-rule (#3470) 2022-02-08 11:27:54 +00:00
Donny/강동윤
8bf5cf4d03
chore(es): Fix clippy warnings (#3482) 2022-02-08 19:50:22 +09:00
Donny/강동윤
180bb86e8c chore: Publish crates 2022-02-08 19:10:54 +09:00
Donny/강동윤
292add7d26
fix(es/minifier): Make sequences less aggressive (#3480)
swc_ecma_minifier:
 - `sequences`: Abort on RHS contains the left id.
2022-02-08 19:10:22 +09:00
Donny/강동윤
484cd92959 chore: Publish crates 2022-02-08 14:06:31 +09:00
OJ Kwon
d473a65976
feat(plugin): Support global HANDLER in the plugin context (#3478) 2022-02-08 14:06:10 +09:00
Donny/강동윤
214dc4736b chore: Publish crates 2022-02-08 13:52:33 +09:00
Alexander Akait
e6f4fbf056
feat(css/ast): Add types for @counter-style at-rule (#3469) 2022-02-08 13:52:14 +09:00
Donny/강동윤
e988d1f5f5 chore: Publish crates 2022-02-08 13:41:34 +09:00
Donny/강동윤
c006972501 chore: Publish v1.2.137 2022-02-08 01:27:59 +09:00
Donny/강동윤
42918397cb chore: Publish crates 2022-02-08 01:20:34 +09:00
William Tetlow
4f5e87b66b
fix(es/compat): Fix legacy decorator pass (#3459) 2022-02-07 16:11:41 +00:00
Donny/강동윤
ec120199eb chore: Publish crates 2022-02-08 00:42:17 +09:00
Alexander Akait
df08e4cfd7
fix(css/ast): Fix type definitions for @document at-rule (#3468) 2022-02-08 00:41:56 +09:00
Donny/강동윤
0903899977 chore: Publish crates 2022-02-07 23:58:29 +09:00
Alexander Akait
0ca036a962
feat(css/codegen): Improve minification for page rules (#3467) 2022-02-07 14:54:42 +00:00
Donny/강동윤
42143f243e chore: Publish crates 2022-02-07 23:33:05 +09:00
Alexander Akait
81850c2b30
feat(css/codegen): Implement minification of identifiers (#3466) 2022-02-07 14:29:38 +00:00
Donny/강동윤
1234fac4d5 chore: Publish crates 2022-02-07 23:04:39 +09:00
Donny/강동윤
b06a5abe58 chore(es/lints): Fix CI 2022-02-07 23:03:08 +09:00
Donny/강동윤
7b9379e1d1 chore: Publish crates 2022-02-07 21:35:06 +09:00
Alexander Akait
69660fd161
refactor(css/ast): Remove unused types (#3465) 2022-02-07 21:34:41 +09:00
Donny/강동윤
02c401830d chore: Publish crates 2022-02-07 17:12:43 +09:00
Artur
5d6143a53c
feat(es/lints): Implement linter for quotes of string literals (#3443) 2022-02-07 08:12:14 +00:00
Donny/강동윤
0ff58d83c6 chore: Publish crates 2022-02-07 13:43:30 +09:00
Donny/강동윤
0371c41b7c
fix(es/minifier): Fix mapbox (#3463)
swc_ecma_minifier:
 - `mangler`: Handle the identifiers of class expressions correctly.
2022-02-07 13:43:00 +09:00
Donny/강동윤
f1f9c1ce4d chore: Publish crates 2022-02-07 11:12:21 +09:00
Donny/강동윤
5812c3c10f
fix(es/minifier): Fix codemirror (#3462)
swc_ecma_minifier:
 - Mark for in/of loops as executed multiple times.
 - Check captured identifiers while invoking IIFE.
2022-02-07 11:11:53 +09:00
Donny/강동윤
5276054df3 chore: Publish crates 2022-02-07 06:43:46 +09:00
Alexander Akait
4853821d00
fix(css): Fix parsing of @page at-rule (#3356) 2022-02-06 20:22:30 +00:00
Donny/강동윤
92116f6133 chore: Publish crates 2022-02-07 04:46:44 +09:00
Alexander Akait
e732250cdf
fix(css/parser): Report errors of at-rules (#3461) 2022-02-06 17:06:32 +00:00
Donny/강동윤
bd34a84d56 chore: Publish crates 2022-02-06 13:44:50 +09:00
Alexander Akait
cd87d965f3
refactor(css/ast): Refactor types related to selectors (#3460) 2022-02-06 04:24:51 +00:00
Donny/강동윤
be7d5cc4d5 chore: Publish crates 2022-02-05 23:23:09 +09:00
Alexander Akait
38879de8de
refactor(css/ast): Change AST for !important (#3440) 2022-02-05 23:22:47 +09:00
Donny/강동윤
bfada04b33 chore: Publish crates 2022-02-05 17:39:30 +09:00
magic-akari
032f397b52
fix(es/fixer): Handle more expressions in the super class position (#3452) 2022-02-05 17:38:48 +09:00
Alexander Akait
479b509845
test(css/parser): Add more tests for the selector parser (#3455) 2022-02-05 06:22:32 +00:00
Donny/강동윤
38e2ffb929 chore: Publish crates 2022-02-05 14:49:39 +09:00
RiESAEX
745604b26d
fix(es/modules): Allow using a dynamic import with an expression from another import (#3450) 2022-02-05 14:49:13 +09:00
Donny/강동윤
dc5fe85f7d chore: Publish crates 2022-02-05 14:48:36 +09:00
Alexander Akait
eeedd71705
feat(css/codegen): Implement minification of hex colors (#3453) 2022-02-05 05:02:10 +00:00
Donny/강동윤
454d07d973 chore: Publish crates 2022-02-04 20:21:02 +09:00
Donny/강동윤
397a96a1cf
test(es/parser): Fix crlf (#3451) 2022-02-04 20:17:42 +09:00
Donny/강동윤
e5b22cc3d8 chore: Publish crates 2022-02-04 17:54:47 +09:00
Donny/강동윤
5a806c5b81
fix(es/parser): Fix parsing of decorators (#3449)
swc_ecma_parser:
 - Parse decorators using `parse_subscripts`.
2022-02-04 17:54:03 +09:00
Donny/강동윤
8b7c38c80c
test(es): Update tsc test suite (#3448) 2022-02-04 17:08:38 +09:00
Donny/강동윤
802842561e chore: Publish crates 2022-02-04 16:47:02 +09:00
Artur
8166275166
feat(es/lints): Implement prefer-regex-literals (#3399) 2022-02-04 16:46:34 +09:00
Donny/강동윤
d7c2d0561b chore: Publish crates 2022-02-04 14:14:08 +09:00
Donny/강동윤
2af5096e83
fix(es/resolver): Fix handling of for statements (#3446)
swc_ecma_transforms_base:
 - `resolver`: Visit the body of a for statement in a nested visitor.
2022-02-04 14:13:32 +09:00
Donny/강동윤
811ac08d32 chore: Publish crates 2022-02-04 14:12:11 +09:00
Alexander Akait
5c1b02182d
refactor(css/ast): Refactor types related to @keyframes at-rule (#3441) 2022-02-04 05:10:35 +00:00
Donny/강동윤
19e7c70bd7 chore: Publish crates 2022-02-04 13:21:41 +09:00
RiESAEX
cc185f01cb
feat(es/parser): Add an option to allow super outside of class methods (#3427) 2022-02-04 13:21:16 +09:00
Donny/강동윤
dc92beb038 chore: Publish crates 2022-02-04 13:06:57 +09:00
Alexander Akait
49564d9b5d
feat(css/ast): Improve types related to url tokens (#3444) 2022-02-04 04:05:44 +00:00
Donny/강동윤
51f2202e9e chore: Publish crates 2022-02-04 12:34:05 +09:00
magic-akari
3bb2a6ccca
fix(es/compat): Handle initializer hole in array patterns (#3442) 2022-02-04 12:33:19 +09:00
Donny/강동윤
e732ac9621 chore: Publish crates 2022-02-04 12:30:40 +09:00
Alexander Akait
f1410fc09b
feat(css/lexer): Implement error recovery for functions (#3445) 2022-02-04 12:29:56 +09:00