Commit Graph

4084 Commits

Author SHA1 Message Date
SWC Bot
7fcd2b2a6c chore: Publish crates 2022-11-09 01:53:23 +00:00
Alexander Akait
4d49b9f61f
refactor(css/parser): Avoid unnecessary checks (#6383) 2022-11-09 01:50:12 +00:00
SWC Bot
96e78144e9 chore: Publish crates 2022-11-09 01:23:27 +00:00
SWC Bot
410ec6f6c7 chore: Publish crates 2022-11-08 01:35:42 +00:00
Alexander Akait
f4832247bc
fix(css/parser): Fix parsing of supports() (#6333) 2022-11-08 01:32:48 +00:00
SWC Bot
35a53ae103 chore: Publish crates 2022-11-07 14:29:43 +00:00
Alexander Akait
34b3710c9c
feat(html/minifier): Improve merging of group elements (#6349) 2022-11-07 14:26:08 +00:00
SWC Bot
9f685796c3 chore: Publish crates 2022-11-07 03:59:24 +00:00
Daiki Nishikawa
f6faeb3bad
fix(es/parser): Fix parsing of TS satisfies expressions (#6354) 2022-11-07 03:56:15 +00:00
SWC Bot
981dc88517 chore: Publish crates 2022-11-06 00:23:31 +00:00
Austaras
982012289f
fix(es/compat): Fix this in computed class method names (#6364) 2022-11-06 00:20:21 +00:00
SWC Bot
2c8c1392d1 chore: Publish crates 2022-11-05 18:33:53 +00:00
Austaras
2de45fb0f7
fix(es/compat): Handle a nullish coalescing in a switch case (#6363) 2022-11-05 18:31:02 +00:00
SWC Bot
0f09f82db3 chore: Publish crates 2022-11-05 18:03:50 +00:00
Austaras
3793e83fbb
fix(es/lints): Disallow reassignment to a class (#6362) 2022-11-05 18:00:54 +00:00
SWC Bot
1b839321c0 chore: Publish crates 2022-11-05 15:28:00 +00:00
Austaras
6cc9e90ef4
fix(es/compat): Handle super access in a private static property (#6361) 2022-11-05 15:25:51 +00:00
SWC Bot
134b134581 chore: Publish crates 2022-11-05 14:10:18 +00:00
magic-akari
8123bf09b5
fix(es/fixer): Handle more expressions in postfix operator (#6359) 2022-11-05 14:06:51 +00:00
SWC Bot
5e18ebf61c chore: Publish crates 2022-11-03 15:12:17 +00:00
Alexander Akait
e0967efa6e
feat(css/parser): Support new nesting spec (#6337) 2022-11-03 15:08:23 +00:00
SWC Bot
d90b0c600d chore: Publish crates 2022-11-03 07:06:57 +00:00
Donny/강동윤
91e863c8df
fix(es/modules): Preserve extensions (#6339)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6209.
2022-11-03 07:04:03 +00:00
SWC Bot
8df5ef9d54 chore: Publish crates 2022-11-03 06:33:20 +00:00
Alexander Akait
0bc682f529
feat(css/parser): Improve error recovery (#6336) 2022-11-03 06:30:09 +00:00
SWC Bot
a1a6513ee7 chore: Publish crates 2022-11-03 06:03:12 +00:00
magic-akari
064baa3052
fix(es/compat): Fix chained op-assignment of super properties (#6319) 2022-11-03 06:00:10 +00:00
SWC Bot
069c14d293 chore: Publish crates 2022-11-03 05:26:30 +00:00
Donny/강동윤
25138624a6
test(es/resolver): Add a test about hoisting of functions in a switch (#6341)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6332
2022-11-03 05:23:12 +00:00
SWC Bot
4293463bb6 chore: Publish crates 2022-11-03 04:55:30 +00:00
Alexander Akait
28af15e475
fix(es/parser): Fix parsing of await (#6316) 2022-11-03 04:52:11 +00:00
SWC Bot
8b19e3cc50 chore: Publish crates 2022-11-03 04:23:08 +00:00
SWC Bot
d4359bdcd6 chore: Publish crates 2022-11-03 00:36:51 +00:00
SWC Bot
394924cb99 chore: Publish crates 2022-11-02 10:05:19 +00:00
Donny/강동윤
2737aea312
fix(es/resolver): Change order for switch cases (#6317)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6310.
2022-11-02 10:02:06 +00:00
SWC Bot
fffc5f22d6 chore: Publish crates 2022-11-02 09:32:51 +00:00
Donny/강동윤
e34c25e40d
fix(es/helpers): Fix toArray (#6318)
**Related issue (if exists):**

 - Closes https://github.com/swc-project/swc/issues/6302.
2022-11-02 09:30:02 +00:00
Alexander Akait
3bea6f7248
fix(es/compat): Fix destructuring of an empty array (#6314) 2022-11-02 16:06:52 +09:00
SWC Bot
06a664a1f4 chore: Publish crates 2022-11-02 04:56:02 +00:00
SWC Bot
75599d5821 chore: Publish crates 2022-11-02 03:39:31 +00:00
Alexander Akait
3a9065799d
perf(html/parser): Refactor (#6313) 2022-11-02 03:36:00 +00:00
SWC Bot
eb9b3c6a21 chore: Publish crates 2022-11-02 03:03:05 +00:00
Donny/강동윤
0f9d930f73
test(es/compat): Add execution tests (#6312) 2022-11-02 02:59:47 +00:00
SWC Bot
5fafa7b296 chore: Publish crates 2022-11-02 02:30:51 +00:00
Donny/강동윤
5b02e2450d
test(es): Enable tests for fixed issues (#6311) 2022-11-02 02:27:13 +00:00
SWC Bot
5784ae24a5 chore: Publish crates 2022-11-02 02:00:08 +00:00
Donny/강동윤
dd797f7f15
fix(es/minifier): Don't drop an inlined parameter as a duplicate (#6293) 2022-11-02 01:57:15 +00:00
SWC Bot
d22a400fd3 chore: Publish crates 2022-11-02 01:24:27 +00:00
Donny/강동윤
5d52ae971e
feat(es/minifier): Implement trivial optimizations (#6256)
**Description:**

1. Evaluate `Number.toString()`.
2. Mark some terser tests as passing where our output is better.
2022-11-02 01:21:32 +00:00
SWC Bot
108d3b82d4 chore: Publish crates 2022-11-01 16:36:24 +00:00
Donny/강동윤
655f6744c5
fix(es/minifier): Fix infinite loop (#6300)
**Related issue:**

 - https://github.com/vercel/next.js/issues/42171.
2022-11-01 16:32:52 +00:00
SWC Bot
00457b5275 chore: Publish crates 2022-10-31 08:02:28 +00:00
Donny/강동윤
0967e8f06d
chore(ci): Enforce clippy for all targets (#6299) 2022-10-31 16:59:29 +09:00
SWC Bot
33d83ae734 chore: Publish crates 2022-10-31 02:33:07 +00:00
Austaras
aa18612e62
fix(es/compat): Fix new.target in a nested scope (#6296) 2022-10-31 02:29:55 +00:00
SWC Bot
4f353acc52 chore: Publish crates 2022-10-30 12:38:29 +00:00
Johan Holmerin
a27392a251
fix(es/lints): Fix const-assign in function expressions (#6294) 2022-10-30 12:34:57 +00:00
SWC Bot
ff700d8252 chore: Publish crates 2022-10-29 08:31:56 +00:00
Alexander Akait
6cafeb2bcc
refactor(css/parser): Refactor even more (#6288) 2022-10-29 08:28:39 +00:00
SWC Bot
b1a72db365 chore: Publish crates 2022-10-29 07:32:26 +00:00
Fy
1024a552cf
refactor(es): Accept custom instance of Comments (#6290) 2022-10-29 07:29:37 +00:00
SWC Bot
41e0698ed6 chore: Publish crates 2022-10-29 00:05:27 +00:00
Donny/강동윤
4eab2ed2fc
fix(es/minifier): Don't inline regex for IIFEs (#6283)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6279.

Co-authored-by: Justin Ridgewell <justin@ridgewell.name>
2022-10-29 00:02:32 +00:00
SWC Bot
5480a52d83 chore: Publish crates 2022-10-28 22:59:55 +00:00
Johan Holmerin
244b0af30d
feat(es): Support trailing commas in .swcrc (#6289) 2022-10-28 22:56:45 +00:00
SWC Bot
9f39013704 chore: Publish crates 2022-10-28 08:04:06 +00:00
Donny/강동윤
0376da73c6
test(es/minifier): Add a test for ?? operator (#6282)
**Related issue:**

 - https://github.com/vercel/next.js/issues/41992.
2022-10-28 08:00:21 +00:00
SWC Bot
fdeb7bc4fe chore: Publish crates 2022-10-28 04:37:31 +00:00
Alexander Akait
2813acccc2
fix(css/parser): Fix various issues (#6281) 2022-10-28 04:34:23 +00:00
SWC Bot
ecba41691d chore: Publish crates 2022-10-28 03:17:00 +00:00
Alexander Akait
956d574683
feat(css/parser): Improve error reporting (#6274) 2022-10-28 03:14:08 +00:00
SWC Bot
55f2cdf186 chore: Publish crates 2022-10-28 02:42:26 +00:00
Alexander Akait
02f8d31ef3
feat(html/minifier): Merge script tags (#6273) 2022-10-28 02:39:10 +00:00
SWC Bot
30b3596779 chore: Publish crates 2022-10-28 02:04:38 +00:00
Austaras
8c1ac686cb
fix(es/minifier): Don't ignore nullish coalescing (#6272) 2022-10-28 02:00:47 +00:00
SWC Bot
a4546a4d22 chore: Publish crates 2022-10-28 01:27:37 +00:00
Justin Ridgewell
47d7fcaaed
fix(common): Remove &mut from build_source_map_from (#6276) 2022-10-28 10:24:13 +09:00
SWC Bot
111fb3a508 chore: Publish crates 2022-10-27 12:46:54 +00:00
Alexander Akait
cd1319d9be
test(css/minifier): Fix fixture tester (#6222) 2022-10-27 12:43:01 +00:00
SWC Bot
f56d16dcd6 chore: Publish crates 2022-10-27 03:51:01 +00:00
Alexander Akait
c255cfd716
refactor(html/parser): Refactor (#6267) 2022-10-27 03:47:37 +00:00
SWC Bot
09b296164c chore: Publish crates 2022-10-27 03:05:43 +00:00
Donny/강동윤
c3184463f1
fix(es/codegen): Preserve more parens (#6268)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6266.
2022-10-27 03:02:56 +00:00
SWC Bot
d2dc90bc69 chore: Publish crates 2022-10-27 02:29:02 +00:00
Alexander Akait
028951c36c
fix(html/minifier): Merge style blocks (#6264) 2022-10-27 02:25:45 +00:00
SWC Bot
c41fe0d261 chore: Publish crates 2022-10-27 01:58:16 +00:00
Alexander Akait
c3944ba239
fix(css/parser): Fix parsing of colors (#6260) 2022-10-27 01:55:06 +00:00
SWC Bot
fd4b66ea8c chore: Publish crates 2022-10-27 01:25:04 +00:00
Matt Brubeck
2f61332177
chore(common): Switch to new_debug_unreachable (#6265) 2022-10-27 01:21:36 +00:00
SWC Bot
bd61e0614c chore: Publish crates 2022-10-27 00:54:01 +00:00
Donny/강동윤
743a1aab4f
feat(es/minfiier): Compute more with sequential inliner (#6169) 2022-10-27 00:50:52 +00:00
SWC Bot
51132f0636 chore: Publish crates 2022-10-27 00:19:24 +00:00
Alexander Akait
782da5c83a
feat(html/minifier): Handle crossorigin (#6261) 2022-10-27 00:16:24 +00:00
SWC Bot
ab4fd93082 chore: Publish crates 2022-10-26 23:02:01 +00:00
Alexander Akait
4c293f965b
test(css/parser): Add tests for refactoring (#6262) 2022-10-26 22:58:59 +00:00
SWC Bot
3fdc8071e1 chore: Publish crates 2022-10-26 12:32:21 +00:00
suxin2017
28ec6e8fc7
fix(es/typescript): Fix stack overflow (#6250) 2022-10-26 12:29:05 +00:00
SWC Bot
dcd024f866 chore: Publish crates 2022-10-26 10:25:23 +00:00
Alexander Akait
a0e4684476
refactor(css/parser): Refactor more (#6251) 2022-10-26 19:22:27 +09:00
SWC Bot
4d85006572 chore: Publish crates 2022-10-26 06:33:11 +00:00
SWC Bot
f82dfe1f5d chore: Publish crates 2022-10-26 06:05:35 +00:00
Austaras
1cd7f617f9
feat(es/minifier): Inline a lazily initialized var if it's used once (#6237) 2022-10-26 06:02:22 +00:00
SWC Bot
5e60bf4f55 chore: Publish crates 2022-10-26 04:40:31 +00:00
Donny/강동윤
86e265a024
feat(es/minifier): Support more statements in seqential inliner (#6248)
**Description:**

We now inline into the discriminant of a switch statement and into the initializer of for/for-in/for-of statements.
2022-10-26 13:37:10 +09:00
SWC Bot
8da12aa05f chore: Publish crates 2022-10-25 05:15:36 +00:00
Donny/강동윤
01edb4fff4
test(es/minifier): Organize terser tests (#6247) 2022-10-25 05:12:30 +00:00
SWC Bot
cb33feec6e chore: Publish crates 2022-10-25 04:38:43 +00:00
Donny/강동윤
d4544884ee
chore(es/minifier): Configure fuzzer (#6246) 2022-10-25 04:36:03 +00:00
SWC Bot
3d9c1a55bb chore: Publish crates 2022-10-25 04:03:28 +00:00
Donny/강동윤
ec9a80aae0
feat(es/minifier): Respect options (#6245) 2022-10-25 04:00:16 +00:00
SWC Bot
2f05c3fd32 chore: Publish crates 2022-10-24 03:58:37 +00:00
Donny/강동윤
c28533f725
build(bindings): Revert jemallloc bump (#6241) 2022-10-24 12:54:57 +09:00
SWC Bot
d05deb8a07 chore: Publish crates 2022-10-24 03:14:40 +00:00
Donny/강동윤
6341554628
fix(css/parser): Add more error recovery (#6240) 2022-10-24 03:11:27 +00:00
SWC Bot
1a3ceaa968 chore: Publish crates 2022-10-24 01:24:40 +00:00
Fy
0b267edea2
feat(es): Expose unresolved_mark (#6236) 2022-10-24 01:22:04 +00:00
SWC Bot
c025cd01ce chore: Publish crates 2022-10-23 04:45:44 +00:00
Donny/강동윤
48bb0cc51d
fix(es/minifier): Fix collapse_vars (#6235)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6217
2022-10-23 13:43:10 +09:00
SWC Bot
2dbff698b8 chore: Publish crates 2022-10-22 22:52:58 +00:00
Alexander Akait
e4fe8403d7
refactor(css/parser): Fix parsing of declarations (#6234) 2022-10-22 22:50:19 +00:00
SWC Bot
ac3949e34f chore: Publish crates 2022-10-22 04:24:21 +00:00
Alexander Akait
ac619e88bf
refactor(css/parser): Use new approach for parsing invalid tokens (#6224)
Co-authored-by: Donny/강동윤 <kdy1997.dev@gmail.com>
2022-10-22 04:21:40 +00:00
SWC Bot
e2c1fcffd4 chore: Publish crates 2022-10-21 23:50:56 +00:00
Maxime
61e63df0a0
chore(es/parser): Typo (#6228) 2022-10-21 23:48:15 +00:00
SWC Bot
67c5af7762 chore: Publish crates 2022-10-21 12:52:30 +00:00
Alexander Akait
8b6b9c0961
feat(css/minifier): Merge rules (#6220) 2022-10-21 21:49:25 +09:00
SWC Bot
b79997ba02 chore: Publish crates 2022-10-21 09:11:29 +00:00
Donny/강동윤
e9d421bd95
fix(es/minifier): Preserve this in more cases (#6226)
**Related issue (if exists):**

 - Closes https://github.com/swc-project/swc/issues/6175.
 - Closes https://github.com/swc-project/swc/issues/6137.

Co-authored-by: Justin Ridgewell <justin@ridgewell.name>
2022-10-21 09:07:00 +00:00
SWC Bot
fefbd0f970 chore: Publish crates 2022-10-21 07:56:58 +00:00
SWC Bot
caaf491da5 chore: Publish crates 2022-10-21 05:11:38 +00:00
SWC Bot
daf36a635a chore: Publish crates 2022-10-21 03:53:20 +00:00
SWC Bot
bcd5f6f5be chore: Publish crates 2022-10-21 03:21:15 +00:00
Donny/강동윤
780b5de678
fix(es/minifier): Fix detection of direct eval (#6215) 2022-10-21 12:18:10 +09:00
SWC Bot
dc615b134e chore: Publish crates 2022-10-21 01:39:09 +00:00
Alexander Akait
055bdcd997
test(css/minifier): Add tests for layer (#6221) 2022-10-21 01:36:00 +00:00
SWC Bot
1186c52ea4 chore: Publish crates 2022-10-21 01:07:03 +00:00
Alexander Akait
6505c6491a
test(html/parser): Resolve TODOs (#6223) 2022-10-21 01:03:54 +00:00
SWC Bot
6b738f2443 chore: Publish crates 2022-10-21 00:36:28 +00:00
Donny/강동윤
ea03ce1a82
refactor(es/minifier): Don't create invalid nodes (#6191)
**Description:**

A sequential expression should have at leat two elements.
2022-10-21 00:33:40 +00:00
SWC Bot
bb5bf9a93a chore: Publish crates 2022-10-20 19:30:03 +00:00
Donny/강동윤
725b1185f3
test(es/minifier): Add a test for a fixed issue (#6218)
**Related issue (if exists):**

 - Closes https://github.com/swc-project/swc/issues/6217.
2022-10-20 19:26:27 +00:00
SWC Bot
3f648bdf0f chore: Publish crates 2022-10-20 08:59:26 +00:00
LongYinan
283549c677
chore(deps): Update jemallocator (#6216) 2022-10-20 17:56:25 +09:00
SWC Bot
33470ab5b9 chore: Publish crates 2022-10-20 05:09:47 +00:00
Donny/강동윤
cc848db80e
feat(es/minifier): Mark more expressions as pure (#6204) 2022-10-20 05:06:32 +00:00
SWC Bot
d9ef284ef8 chore: Publish crates 2022-10-20 04:19:52 +00:00
Alexander Akait
aa3fab1957
feat(html/minifier): Improve removal of redundant attributes (#6197) 2022-10-20 04:17:17 +00:00
SWC Bot
7d5b544458 chore: Publish crates 2022-10-20 02:56:58 +00:00
Alexander Akait
ba5d272ae1
perf(html/parser): Improve performance a bit (#6213) 2022-10-20 02:54:22 +00:00
SWC Bot
6aaf6a7a87 chore: Publish crates 2022-10-20 02:26:45 +00:00