Commit Graph

1507 Commits

Author SHA1 Message Date
Donny/강동윤
fcbd3c5c58
fix(api/rust): Fix transform comment api (#3962) 2022-03-11 05:46:49 +00:00
SWC Bot
3014d7a876 chore: Publish crates 2022-03-11 05:23:53 +00:00
Alexander Akait
5a6ebd36ee
feat(css/codegen): Support source map (#3958) 2022-03-11 05:22:14 +00:00
SWC Bot
15be5f153b chore: Publish crates 2022-03-11 04:57:25 +00:00
magic-akari
579aeb7cfa
feat(es/lints): Refine error message (#3952) 2022-03-11 04:55:37 +00:00
SWC Bot
d62ef6498d chore: Publish crates 2022-03-11 12:52:17 +09:00
SWC Bot
908c10e1db chore: Publish crates 2022-03-10 17:01:52 +00:00
OJ Kwon
ca071fb705
fix(es): Adjust tracing span level (#3911) 2022-03-10 16:59:51 +00:00
SWC Bot
8bb74b6093 chore: Publish crates 2022-03-10 15:23:12 +00:00
underfin
91a302a672
fix(es/minifier): Preserve fuction parameters used for template literals in evaluate and reduce_vars (#3949) 2022-03-10 15:21:06 +00:00
SWC Bot
e55c2a9850 chore: Publish crates 2022-03-10 14:32:17 +00:00
Donny/강동윤
e8018c54d4
fix(es/codegen): Fix sourcemap issue caused by reserved BytePos values (#3948) 2022-03-10 14:30:03 +00:00
SWC Bot
199dfbdd8e chore: Publish crates 2022-03-10 13:54:58 +00:00
Austaras
de8a7116cd
fix(es/compat): Refer this in constructor when super_is_callable_constructor is set (#3944) 2022-03-10 13:52:54 +00:00
Donny/강동윤
1a55bc8ea4 chore: Publish v1.2.152 2022-03-10 16:51:35 +09:00
SWC Bot
666f55e01c chore: Publish crates 2022-03-10 07:48:19 +00:00
Austaras
112f428734
feat(es/compat): Add pure comments for class fields keys (#3939) 2022-03-10 07:13:58 +00:00
SWC Bot
9f72998821 chore: Publish crates 2022-03-10 06:51:46 +00:00
Pig Fang
aec1a54204
feat(preset-env): Update browserslist-rs (#3935) 2022-03-10 06:50:00 +00:00
SWC Bot
41573530c2 chore: Publish crates 2022-03-10 06:21:09 +00:00
underfin
cc564ff6c5
fix(es/minifier): Skip exported vars while collapsing vars (#3928) 2022-03-10 06:19:25 +00:00
SWC Bot
ce57482ac8 chore: Publish crates 2022-03-10 05:57:55 +00:00
Donny/강동윤
f1ec8620ac
perf(es/minifier): Make optimization of pure calls parallel (#3938) 2022-03-10 05:56:02 +00:00
SWC Bot
44b28b5688 chore: Publish crates 2022-03-10 05:33:46 +00:00
Donny/강동윤
46e9d3f62e
fix(es): Don't create .swc if not required (#3937) 2022-03-10 05:32:00 +00:00
SWC Bot
27018b9402 chore: Publish crates 2022-03-10 04:27:18 +00:00
Alexander Akait
62ab17999e
feat(css/prefixer): Implement more rules (#3933) 2022-03-10 04:23:34 +00:00
Donny/강동윤
45a4374ee1
fix(wasm): Fix handling of swc_common::GLOBALS (#3936) 2022-03-10 03:59:46 +00:00
SWC Bot
82b3678b47 chore: Publish crates 2022-03-10 03:17:39 +00:00
OJ Kwon
86ea23785d
perf(*): Update tracing to improve performance of disabled spans (#3932) 2022-03-10 03:15:49 +00:00
SWC Bot
99f381cfa2 chore: Publish crates 2022-03-09 15:44:57 +00:00
Donny/강동윤
9e4dea6663
feat(es/minifier): Improve dropping of unused vars (#3923) 2022-03-09 15:43:01 +00:00
SWC Bot
1fbe209c53 chore: Publish crates 2022-03-09 14:16:10 +00:00
magic-akari
dc457b4883
fix(es/module): Use correct return values for suffix update expressions (#3927) 2022-03-09 23:14:06 +09:00
SWC Bot
a99b9e6bff chore: Publish crates 2022-03-09 12:55:36 +00:00
Donny/강동윤
4b4aef3270
fix(es/parser): Fix the logic for token contexts (#3926) 2022-03-09 12:53:47 +00:00
SWC Bot
56b646cc1a chore: Publish crates 2022-03-09 12:04:50 +00:00
Austaras
bd838ac5a9
feat(es/minifier): Remove pure calls (#3925) 2022-03-09 11:55:31 +00:00
SWC Bot
8f4e10e44c chore: Publish crates 2022-03-09 06:53:48 +00:00
Austaras
12b8606c99
fix(es/compat/es2015): Fix span handling of arrow and classes (#3921) 2022-03-09 06:51:48 +00:00
SWC Bot
531812c28a chore: Publish crates 2022-03-09 06:32:12 +00:00
magic-akari
8559fc9623
fix(es/module): Fix exported vars with bigint values (#3909) 2022-03-09 06:30:28 +00:00
SWC Bot
79a9cb4c72 chore: Publish crates 2022-03-09 04:46:20 +00:00
Donny/강동윤
a8ac7e39b0
feat(es/parser): Relax MSRV requirement (#3922) 2022-03-09 04:44:22 +00:00
SWC Bot
c80d5c87d0 chore: Publish crates 2022-03-09 03:21:02 +00:00
Alexander Akait
c2b9e1c61a
feat(css/prefixer): Handle more properties (#3919) 2022-03-09 03:18:49 +00:00
SWC Bot
550627ccbc chore: Publish crates 2022-03-09 02:56:18 +00:00
Donny/강동윤
3d43a9b69d
feat(es/testing): Print comments in test_fixture (#3920) 2022-03-09 02:54:27 +00:00
SWC Bot
1196cc8155 chore: Publish crates 2022-03-08 14:37:12 +00:00
Austaras
7cfa930a62
feat(es/fixer): Remove extra parens around IIFE in statements (#3918) 2022-03-08 14:35:18 +00:00
SWC Bot
4c8e747c5c chore: Publish crates 2022-03-08 10:06:14 +00:00
Donny/강동윤
8b3aa6d3aa
perf(es/minifier): Remove needless type parameter (#3897) 2022-03-08 10:04:14 +00:00
SWC Bot
782df70560 chore: Publish crates 2022-03-08 09:25:38 +00:00
magic-akari
534fc52a72
fix(es/module): Make exported vars follow specification (#3906) 2022-03-08 09:23:40 +00:00
SWC Bot
967d1d5477 chore: Publish crates 2022-03-08 08:32:58 +00:00
Alexander Akait
b25c47901e
feat(css/prefixer): Implement more prefixing rules (#3905) 2022-03-08 08:31:10 +00:00
SWC Bot
cb46cb2f06 chore: Publish crates 2022-03-08 08:08:20 +00:00
Pig Fang
59c84ac8bd
feat(css/lints): Implement no-duplicate-at-import-rules rule (#3833) 2022-03-08 08:06:23 +00:00
SWC Bot
4b1b9a7dd3 chore: Publish crates 2022-03-08 07:46:12 +00:00
Austaras
16182d586f
feat(es/parser): Report errors for non-abstract members in an abstract class (#3917) 2022-03-08 07:38:12 +00:00
SWC Bot
dbdfb3a449 chore: Publish crates 2022-03-07 23:03:16 +00:00
Pig Fang
19ececcd50
feat(css/lints): Implement custom-property-no-missing-var-function rule (#3890) 2022-03-07 23:01:18 +00:00
Donny/강동윤
f3da3499c5
perf(es): Add fast memory deallocator (#3910) 2022-03-07 22:36:06 +00:00
SWC Bot
d72a2f32af chore: Publish crates 2022-03-07 20:41:37 +00:00
Guillaume Malette
f575b1bc48
fix(es/module/cjs): Allow re-exports to be lazy (#3856) 2022-03-07 20:39:45 +00:00
SWC Bot
4860ea2672 chore: Publish crates 2022-03-07 20:20:42 +00:00
William Tetlow
782a874696
fix(es/transform/optimization): Prevent inlining of vars used as RHS in logical expressions (#3907) 2022-03-07 20:18:48 +00:00
SWC Bot
a64473dc34 chore: Publish crates 2022-03-07 19:42:40 +00:00
Alexander Akait
3a9af73167
refactor(css/parser): Remove unused codes (#3903) 2022-03-07 19:40:44 +00:00
SWC Bot
bf9e8d716c chore: Publish crates 2022-03-07 19:20:40 +00:00
OJ Kwon
bd0a9214c3
feat(es/compat): Add tracing support to remaining compat transforms (#3904) 2022-03-07 19:18:48 +00:00
SWC Bot
c6e2abf340 chore: Publish crates 2022-03-07 17:02:10 +00:00
Donny/강동윤
43878137e7
perf(es/parser): Improve performance by adjusting inlining (#3902) 2022-03-07 17:00:25 +00:00
SWC Bot
87c399fc9d chore: Publish crates 2022-03-07 16:35:40 +00:00
Alexander Akait
6f781c3b43
feat(css/parser): Improve error recovery (#3901) 2022-03-07 16:33:35 +00:00
SWC Bot
b2eae2d539 chore: Publish crates 2022-03-07 10:55:48 +00:00
magic-akari
372f298f5f
feat(common): Align stable_hasher to latest rustc (#3895) 2022-03-07 10:53:54 +00:00
SWC Bot
e7e2fe148a chore: Publish crates 2022-03-07 10:36:36 +00:00
Austaras
5c92b2d4ce
fix(es/typescript): Remove imports used in interfaces and type signatures (#3893) 2022-03-07 19:34:34 +09:00
Donny/강동윤
7f6fc0ce2d chore: Publish v1.2.151 2022-03-07 18:21:31 +09:00
Donny/강동윤
8e30d83d14
fix(es/module): Revert fix for jest.spyOn 2022-03-07 18:21:14 +09:00
SWC Bot
72ea33f796 chore: Publish crates 2022-03-07 05:51:34 +00:00
magic-akari
0181fbe63b
feat(es/lints): Support module/script mode in duplicate_bindings (#3880)
Co-authored-by: Donny/강동윤 <kdy1997.dev@gmail.com>
2022-03-07 05:49:39 +00:00
SWC Bot
c7d21da458 chore: Publish crates 2022-03-07 05:25:26 +00:00
Donny/강동윤
a47eed7241
perf(es/minifier): Add a fast-path to export merger (#3891) 2022-03-07 14:21:57 +09:00
SWC Bot
70896b5ba6 chore: Publish crates 2022-03-07 04:20:34 +00:00
Artur
3e8efacf3a
perf(es/lints): Extract top level bindings only if the rule is enabled (#3889) 2022-03-07 04:18:37 +00:00
Austaras
9dd0105c5b
feat(es/fixer): Remove extra parens around iife in expression position (#3887) 2022-03-07 03:51:57 +00:00
SWC Bot
530c308d93 chore: Publish crates 2022-03-07 03:09:18 +00:00
Austaras
cb93883232
feat(es/compat): Enable set_public_method for TypeScript (#3884) 2022-03-07 12:07:23 +09:00
Donny/강동윤
584bf05662 chore: Publish v1.2.150 2022-03-06 23:36:00 +09:00
SWC Bot
56773a4cc8 chore: Publish crates 2022-03-06 14:35:19 +00:00
Donny/강동윤
aea59b844c
fix(es/parser): Fix parsing of const in ambient context (#3883) 2022-03-06 14:33:14 +00:00
SWC Bot
cc84e9595e chore: Publish crates 2022-03-06 12:36:47 +00:00
Donny/강동윤
a65755fd9a
fix(es/module): Fix jsc.paths (#3879) 2022-03-06 12:33:48 +00:00
Donny/강동윤
17c7a5cd60 chore: Publish v1.2.149 2022-03-06 18:24:43 +09:00
SWC Bot
34e6f6f7ac chore: Publish crates 2022-03-06 09:22:43 +00:00
Philip Craig
3b04789a57
perf(es/ast): Implement Clone without inline for some enums (#3878) 2022-03-06 09:12:23 +00:00
SWC Bot
308d1b42ee chore: Publish crates 2022-03-06 05:04:57 +00:00
Donny/강동윤
6a005fc15a
fix(es/module): Visit the value of class properties (#3877) 2022-03-06 14:03:08 +09:00
SWC Bot
ac9c1246e7 chore: Publish crates 2022-03-06 02:28:57 +00:00
Donny/강동윤
8d3c9d39f0
test(es): Add tests for fixed issues (#3875)
**Description:**

Adds tests for fixed issues.
This commit modifies one type because the previous type makes transform flaky.

**BREAKING CHANGE:**

To preserve order, the type `swc::Paths` is now `IndexMap` instead of `HashMap`.
2022-03-06 02:27:08 +00:00
Donny/강동윤
2605e132e6
test(es): Add tests for fixed issues (#3874) 2022-03-05 21:56:34 +00:00
Donny/강동윤
0ab32639a1
test(es): Add a test for a fixed issue (#3873) 2022-03-05 21:04:05 +00:00
SWC Bot
04d77cab2f chore: Publish crates 2022-03-05 20:20:43 +00:00
Donny/강동윤
a2643608a7
feat(es/minifier): Implement pure_getters partially (#3872) 2022-03-05 20:18:52 +00:00
SWC Bot
94d9416ca8 chore: Publish crates 2022-03-05 19:54:29 +00:00
magic-akari
f7571630ca
fix(es/parser): Allow await in non-strict mode (#3871) 2022-03-05 19:52:45 +00:00
SWC Bot
fd453b9170 chore: Publish crates 2022-03-05 19:34:45 +00:00
magic-akari
c7f2bdb813
feat(es/compat): Implement loose mode for async_to_generator (#3870) 2022-03-05 19:32:59 +00:00
SWC Bot
18658fd501 chore: Publish crates 2022-03-05 18:33:44 +00:00
Pig Fang
dc0de58a46
feat(css/lints): Allow using regex in ignore list (#3855) 2022-03-05 18:31:52 +00:00
SWC Bot
3034e355ed chore: Publish crates 2022-03-05 17:31:09 +00:00
magic-akari
d10e66285b
fix(es/lints): Ignore identifiers used as types while checking for duplicate bindings (#3869) 2022-03-06 02:29:21 +09:00
SWC Bot
2fdc5f625d chore: Publish crates 2022-03-05 14:52:49 +00:00
Austaras
26abc6ba7e
refactor(es/ast): Remove useless fields in private property (#3868) 2022-03-05 23:51:04 +09:00
SWC Bot
faf452dbfa chore: Publish crates 2022-03-05 12:26:37 +00:00
Donny/강동윤
44262508c6
fix(es/parser): Use unicode id instead of xid (#3867) 2022-03-05 12:24:45 +00:00
SWC Bot
4c4dc6f096 chore: Publish crates 2022-03-05 12:00:25 +00:00
Alexander Akait
c84bf133a6
feat(css): Improve error recovery (#3853) 2022-03-05 11:58:40 +00:00
SWC Bot
81b2e6153e chore: Publish crates 2022-03-05 10:03:49 +00:00
Donny/강동윤
e70c9d8f22
fix(es/minifier): Don't remove comments if compress is not configured (#3866) 2022-03-05 10:01:55 +00:00
Donny/강동윤
8400708768
test(swc): Use external helpers for reference testing (#3865) 2022-03-05 08:19:33 +00:00
SWC Bot
3de647a50a chore: Publish crates 2022-03-05 07:58:10 +00:00
Guillaume Malette
1f70fa6e08
feat(es/module/cjs): Support regex-based patterns for lazy config (#3704) 2022-03-05 07:56:18 +00:00
Donny/강동윤
fc87f43507
test(es/transform/jest): Ensure that sourcemap is working (#3864) 2022-03-05 07:30:24 +00:00
SWC Bot
add86a7e6a chore: Publish crates 2022-03-05 06:48:00 +00:00
Austaras
6f076e4927
feat(es/transform): Unify logic for handling class properties (#3766) 2022-03-05 06:46:09 +00:00
OJ Kwon
225f9a7f2a
perf(es): Filter logs for cranelift out (#3801) 2022-03-05 05:11:22 +00:00
SWC Bot
bf33aa56d6 chore: Publish crates 2022-03-05 04:37:58 +00:00
OJ Kwon
cd8bb0fb2c
perf(es/compat): Add tracing support for es2015 transforms (#3857) 2022-03-05 04:36:19 +00:00
SWC Bot
d31ca8e41d chore: Publish crates 2022-03-05 04:13:40 +00:00
OJ Kwon
367a57df6d
feat(cli): Setup subcommands for the features (#3858) 2022-03-05 04:11:47 +00:00
SWC Bot
04f3a8fbc9 chore: Publish crates 2022-03-04 12:35:46 +00:00
Alexander Akait
ccfb4bfc0b
feat(css/minifier): Compress @import at-rule (#3850) 2022-03-04 12:33:39 +00:00
SWC Bot
c5ef673921 chore: Publish crates 2022-03-04 12:09:48 +00:00
Donny/강동윤
73ec0b3dd7
perf(es/transform): Use SingleThreadedComments for transform (#3847) 2022-03-04 12:07:51 +00:00
SWC Bot
126785681b chore: Publish crates 2022-03-04 11:43:59 +00:00
Pig Fang
90fdbab0d6
fix(css/lints): Allow empty @layer at-rule before @import at-rule (#3842) 2022-03-04 11:41:44 +00:00
SWC Bot
08a4bb7454 chore: Publish crates 2022-03-04 07:30:58 +00:00
OJ Kwon
a933db5a1a
perf(es/compat): Add tracing support to transforms for from es2017 to es2019 (#3844) 2022-03-04 07:28:58 +00:00
SWC Bot
88ee527917 chore: Publish crates 2022-03-04 07:06:49 +00:00
Donny/강동윤
9546eefe72
fix(es/module): Fix jest.spyOn (#3845) 2022-03-04 07:04:56 +00:00
SWC Bot
fd501c9549 chore: Publish crates 2022-03-04 12:37:28 +09:00
Donny/강동윤
3677b7bdd8 chore: Publish v1.2.148 2022-03-04 11:12:36 +09:00
SWC Bot
db2a05fa55 chore: Publish crates 2022-03-04 02:11:24 +00:00
Donny/강동윤
260c2a885e
feat(es/minifier): Implement more rules (#3841)
swc_ecma_minifier:
 - `conditionals`: Preserve a conditional expression if test is not resolved.
 - `unsafe_arrows`: Optimize an anonymous function expression as an arrow expression.
 - `unsafe_methods`: Optimize a method property where the only statement is return to an arrow expression.
2022-03-04 02:09:15 +00:00
SWC Bot
24db2ba0fb chore: Publish crates 2022-03-03 23:18:38 +00:00
Alexander Akait
0db6915e32
feat(css/minifier): Compress more declarations (#3840) 2022-03-03 23:16:53 +00:00
Alexander Akait
e3a5c142d5
fix(css/codegen): Fix the output of SimpleBlock (#3838) 2022-03-03 22:34:57 +00:00
SWC Bot
8c5067f510 chore: Publish crates 2022-03-03 22:01:08 +00:00
Donny/강동윤
0fc819e2ef
fix(es/minifier): Support declaring multiple bindings with the same name (#3837) 2022-03-04 06:58:39 +09:00
SWC Bot
0d8adf1dde chore: Publish crates 2022-03-03 21:26:36 +00:00
Alexander Akait
3df887ca37
feat(css): Support color functions (#3836) 2022-03-04 06:24:22 +09:00
SWC Bot
5f8f114b62 chore: Publish crates 2022-03-04 05:26:32 +09:00
SWC Bot
b9756596ae chore: Publish crates 2022-03-03 19:20:31 +00:00
Donny/강동윤
364532e9a7
feat(es/minifier): Improve sequential inlining (#3820) 2022-03-03 19:18:43 +00:00
SWC Bot
4a38e93efc chore: Publish crates 2022-03-03 16:37:49 +00:00
Donny/강동윤
efc67417a5
feat(config): Add a dedicated cached regex (#3832) 2022-03-03 16:35:41 +00:00
SWC Bot
2974775fff chore: Publish crates 2022-03-03 15:07:02 +00:00
Alexander Akait
fbb98aa73c
feat(css/parser): Improve error recovery (#3828) 2022-03-03 15:05:12 +00:00
SWC Bot
937df17a36 chore: Publish crates 2022-03-03 14:37:59 +00:00
Donny/강동윤
351b814ed0
perf(es): Use Mutex from parking_lot (#3830) 2022-03-03 14:26:49 +00:00
SWC Bot
c16bb588de chore: Publish crates 2022-03-03 13:38:44 +00:00
Pig Fang
818b408573
feat(css/lints): Implement color-hex-alpha rule (#3829) 2022-03-03 13:36:44 +00:00
SWC Bot
cec91dedc0 chore: Publish crates 2022-03-03 11:30:24 +00:00
Pig Fang
2d273d60b9
feat(css/lints): Add font-family-no-duplicate-names rule (#3818) 2022-03-03 11:28:17 +00:00
SWC Bot
068b9da9b7 chore: Publish crates 2022-03-03 11:00:23 +00:00
Donny/강동윤
406b8eaeaf
fix(es/compat): Fix block scoping of variables (#3826) 2022-03-03 10:51:45 +00:00
SWC Bot
f044a37150 chore: Publish crates 2022-03-03 06:23:07 +00:00
Donny/강동윤
043fba274e
fix(es/hygiene): Fix renaming bugs (#3824) 2022-03-03 06:21:13 +00:00
Donny/강동윤
814dcc09d6
test(es/compat): Organize tests (#3825) 2022-03-03 05:51:09 +00:00
SWC Bot
ce78344a7c chore: Publish crates 2022-03-03 05:10:48 +00:00
Artur
f6b4bbe47b
feat(es/lints): Implement radix rule (#3651) 2022-03-03 14:03:13 +09:00
SWC Bot
5cdf1442ec chore: Publish crates 2022-03-02 15:55:08 +00:00
Alexander Akait
30cd29b0f0
fix(css/parser): Fix parsing of ; in values (#3821) 2022-03-02 15:51:52 +00:00
SWC Bot
895f664149 chore: Publish crates 2022-03-02 15:19:26 +00:00
Alexander Akait
7ba5861a33
fix(css/codegen): Fix codegen of preserved tokens (#3819) 2022-03-02 15:17:17 +00:00
OJ Kwon
ffb2ee85e6
fix(node-swc): Correctly close trace spans after completion (#3811) 2022-03-02 10:03:00 +00:00
SWC Bot
4177a39e9b chore: Publish crates 2022-03-02 08:59:52 +00:00
Donny/강동윤
8a468f7544
fix(es/minifier): Don't reorder unnecessarily (#3817) 2022-03-02 08:57:50 +00:00
SWC Bot
6ba3c1bf3b chore: Publish crates 2022-03-02 07:15:46 +00:00
Donny/강동윤
89388e6ac3
fix(es/minifier): Preserve more variables (#3805) 2022-03-02 07:13:57 +00:00
SWC Bot
5667316f12 chore: Publish crates 2022-03-02 06:48:09 +00:00
Donny/강동윤
789eb7baa9
feat(es/minifier): Drop more function parameters in strict mode (#3814) 2022-03-02 06:41:11 +00:00
SWC Bot
b662fe84ba chore: Publish crates 2022-03-02 06:10:27 +00:00
Donny/강동윤
f5103a7725
perf(es/parser): Remove duplicated instantiations of Parser to reduce binary size (#3813) 2022-03-02 06:08:37 +00:00
SWC Bot
798f6c5a6d chore: Publish crates 2022-03-02 05:36:57 +00:00
Alexander Akait
f969f8c5f5
feat(css/parser): Improve error recovery (#3810) 2022-03-02 05:27:16 +00:00
Donny/강동윤
4cf27769c9 chore: Publish v1.2.147 2022-03-02 00:34:42 +09:00
SWC Bot
84ad891442 chore: Publish crates 2022-03-01 15:28:37 +00:00
Alexander Akait
3ec45a6858
feat(css/ast): Union Value and ComponentValue (#3804) 2022-03-01 15:26:17 +00:00
SWC Bot
6d0dcba63a chore: Publish crates 2022-03-01 14:57:43 +00:00
Pig Fang
0336029c22
perf(css/lints): Skip disabled rules (#3803) 2022-03-01 14:55:35 +00:00
SWC Bot
08b20b662b chore: Publish crates 2022-03-01 12:26:46 +00:00
Satish Srinivasan
2aa3b2123f
feat(es/parser): Raise a syntax error on an invalid shorthand assignment (#3734) 2022-03-01 12:24:41 +00:00
SWC Bot
3152da285a chore: Publish crates 2022-03-01 10:58:04 +00:00
Austaras
e1b13eb21a
feat(es/codegen): Optimize output of new expressions without arguments (#3800) 2022-03-01 10:55:49 +00:00
SWC Bot
d25ac78865 chore: Publish crates 2022-03-01 10:25:03 +00:00
OJ Kwon
8f41d7a10e
feat(es/compat): Add tracing support for es2020 transforms (#3798) 2022-03-01 10:22:53 +00:00
SWC Bot
1a79eb984e chore: Publish crates 2022-03-01 09:58:04 +00:00
Donny/강동윤
8beaa202e2
fix(es/minifier): Fix optimizations of terminating expressions (#3794) 2022-03-01 09:55:45 +00:00
SWC Bot
518c87d828 chore: Publish crates 2022-03-01 09:09:46 +00:00
OJ Kwon
99d536e486
feat(plugin/runner): Update wasmer to v2.2 (#3788) 2022-03-01 09:07:39 +00:00
SWC Bot
0c22af3f02 chore: Publish crates 2022-03-01 08:23:08 +00:00
OJ Kwon
7fd0eeecb8
perf(plugin/runner): Optimize write_into_memory_view (#3797) 2022-03-01 08:20:56 +00:00
SWC Bot
c8a605c8a0 chore: Publish crates 2022-03-01 07:52:30 +00:00
Pig Fang
e389bef3ad
feat(css/lints): Add selector-max-combinators rule (#3789) 2022-03-01 07:45:15 +00:00
SWC Bot
761fb9c244 chore: Publish crates 2022-03-01 07:12:48 +00:00
Austaras
5b6beca1af
feat(es/compat): Use sequence expressions instead of iife in classes pass (#3773) 2022-03-01 16:10:57 +09:00
SWC Bot
1ef8f3749b chore: Publish crates 2022-03-01 06:30:55 +00:00
OJ Kwon
4d7048291f
feat(es/compat): Add tracing support for es2022 transforms (#3785) 2022-03-01 06:24:13 +00:00
SWC Bot
6819930b63 chore: Publish crates 2022-03-01 06:00:47 +00:00
Donny/강동윤
b485b5a1d5
fix(es/react): Fix logic for extracting refresh comments (#3796) 2022-03-01 05:58:40 +00:00
SWC Bot
b75a038706 chore: Publish crates 2022-03-01 14:22:55 +09:00
underfin
557a520a6d
feat(es/modules): Support system js (#3659) 2022-03-01 05:18:55 +00:00
SWC Bot
ea3f965407 chore: Publish crates 2022-03-01 04:56:41 +00:00
Denis Bezrukov
19b84e7723
feat(es/dep-graph): Add support for require.resolve (#3783) 2022-03-01 04:52:01 +00:00
SWC Bot
12321dfe7e chore: Publish crates 2022-03-01 04:28:42 +00:00
OJ Kwon
5ae907f6f2
fix(es/react): Catch refresh directives widely (#3791) 2022-03-01 04:26:37 +00:00
SWC Bot
cc12b674eb chore: Publish crates 2022-03-01 03:48:18 +00:00
OJ Kwon
bc60a6e90c
feat(plugin): Expose swc_ecma_quote (#3790) 2022-03-01 12:46:16 +09:00
SWC Bot
3c2f5dbd6c chore: Publish crates 2022-03-01 11:58:19 +09:00
SWC Bot
b1fbf5ae82 chore: Publish crates 2022-02-28 16:56:25 +00:00
Pig Fang
b8211da1c9
refactor(css/lints): Simplify error reporting API (#3781) 2022-02-28 16:54:01 +00:00
SWC Bot
bfc31c4bd1 chore: Publish crates 2022-02-28 16:33:26 +00:00
Donny/강동윤
73cab638a1
fix(es/minifier): Preserve unresolved references (#3780)
swc_ecma_minifier:
 - `pure`: Add an optional list of bindings.
 - `pure`: Drop identifier only if we have the complete list of bindings.
 - `pure`: Allow using `GLOBALS`.
 - `pure`: Drop some pure member expressions.
 - Move identifier dropping logic from the stateful optimizer to the pure optimizer.
 - `pure`: Drop more references to global declarations.
2022-02-28 16:31:13 +00:00
SWC Bot
a26edd2b0f chore: Publish crates 2022-02-28 13:53:22 +00:00
Donny/강동윤
86072b57f9
test(es/minifier): Prepare porting more rules from terser (#3779) 2022-02-28 13:49:10 +00:00
SWC Bot
1d0c5f600b chore: Publish crates 2022-02-28 13:01:51 +00:00
Donny/강동윤
714e05e553
feat(es/minifier): Consider arguments while dropping unused assignments (#3775)
swc_ecma_minifier:
 - `analyze`: Track usage of `arguments`.
2022-02-28 21:57:09 +09:00
Alexander Akait
189707a1fd
test(css/parser): Add css files for material design (#3777) 2022-02-28 21:17:50 +09:00
SWC Bot
ca10ae1cd7 chore: Publish crates 2022-02-28 12:09:30 +00:00
Donny/강동윤
cfc036381a
fix(es/minifier): Fix inlining logic (#3776)
swc_ecma_minifier:
 - Make `inline_vars_in_node` use `MultiReplacer`.
2022-02-28 12:07:12 +00:00
SWC Bot
f81e9bf208 chore: Publish crates 2022-02-28 11:18:36 +00:00
Donny/강동윤
e3c374b53b
feat(es/quote): Support variables (#3774) 2022-02-28 10:44:06 +00:00
Alexander Akait
1651bccf45
test(css/parser): Add tests for selectors (#3770)
Co-authored-by: Donny/강동윤 <kdy1997.dev@gmail.com>
2022-02-28 08:26:23 +00:00
SWC Bot
ba3fdad025 chore: Publish crates 2022-02-28 07:43:17 +00:00
Donny/강동윤
e7f7f69db4
fix(es/minifier): Disable some operations for asm.js codes (#3572) 2022-02-28 07:40:04 +00:00
Donny/강동윤
3798436201
chore: Update rustc (#3768) 2022-02-28 16:12:28 +09:00
SWC Bot
a38c8b1ca2 chore: Publish crates 2022-02-28 06:28:54 +00:00
Alexander Akait
500d62c085
feat(css/minifier): Convert more length (#3769) 2022-02-28 06:26:33 +00:00
SWC Bot
344723e80a chore: Publish crates 2022-02-27 16:40:50 +00:00
magic-akari
5f3f9ef033
fix(es/typescript): Transform this in TypeScript classes (#3764) 2022-02-27 16:38:41 +00:00
SWC Bot
34836ff052 chore: Publish crates 2022-02-27 16:19:14 +00:00
Austaras
11bf29f44b
fix(es/compat): Initialize class fields as a last step (#3767) 2022-02-27 16:17:14 +00:00
Pig Fang
66c6cae8dc
feat(css/lints): Add CSS linter (#3765) 2022-02-27 15:31:19 +00:00
SWC Bot
e475a83ebc chore: Publish crates 2022-02-27 14:54:36 +00:00
Alexander Akait
815a489dcf
refactor(css/ast): Simplify AST types (#3753) 2022-02-27 14:52:32 +00:00
Donny/강동윤
fe0ddcc54b
feat(es/quote): Implement quasi quoter partially (#3155) 2022-02-27 13:21:38 +00:00