Donny/강동윤
5ff87afa78
test(es/transforms): Add tests about preserving top-level directives ( #6518 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6508 .
2022-11-28 02:50:26 +00:00
SWC Bot
70ed082ee4
chore: Publish crates
2022-11-27 04:43:13 +00:00
SWC Bot
f019c0210b
chore: Publish crates
2022-11-25 11:31:34 +00:00
Donny/강동윤
0cee0e1af7
fix(es/visit): Visit TypeScript satisfies expressions ( #6511 )
2022-11-25 20:28:01 +09:00
SWC Bot
2ce5e2287a
chore: Publish crates
2022-11-24 15:25:03 +00:00
Donny/강동윤
90aa6c8318
fix(es/react): Allow spread children ( #6505 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/2037 .
2022-11-24 15:21:51 +00:00
SWC Bot
bc61b0948a
chore: Publish crates
2022-11-24 09:46:57 +00:00
HeYunfei
8d906b45e5
fix(es/minifier): Preserve classes with side effects in static fields ( #6480 )
2022-11-24 09:43:00 +00:00
SWC Bot
6fd97971c9
chore: Publish crates
2022-11-24 08:47:34 +00:00
HeYunfei
b3b5526be4
perf(es/helpers): Improve fast-path for helper detection ( #6502 )
2022-11-24 08:44:26 +00:00
SWC Bot
48bbebf5e9
chore: Publish crates
2022-11-22 08:44:17 +00:00
SWC Bot
b90ea8ab8f
chore: Publish crates
2022-11-21 04:20:34 +00:00
SWC Bot
c6d33b3c58
chore: Publish crates
2022-11-21 01:41:47 +00:00
SWC Bot
0e67eaf892
chore: Publish crates
2022-11-21 00:57:06 +00:00
SWC Bot
553ba9c382
chore: Publish crates
2022-11-21 00:11:04 +00:00
magic-akari
1ca281a6cf
fix(es/codegen): Preserve parens for new
in optional chaining ( #6484 )
2022-11-21 00:07:16 +00:00
SWC Bot
66b4966d60
chore: Publish crates
2022-11-20 23:40:48 +00:00
Austaras
c57307d002
refactor(es): Remove settings related to privateInObject
( #6468 )
2022-11-21 08:34:20 +09:00
SWC Bot
40ad709523
chore: Publish crates
2022-11-20 10:06:27 +00:00
Alexander Akait
08a9e21b36
feat(es/codegen): Skip whitespaces for comments in minify mode ( #6465 )
...
Co-authored-by: Donny/강동윤 <kdy1997.dev@gmail.com>
2022-11-20 10:03:26 +00:00
SWC Bot
5a3ae502bb
chore: Publish crates
2022-11-20 06:53:28 +00:00
SWC Bot
59954370cb
chore: Publish crates
2022-11-20 00:30:30 +00:00
HeYunfei
9154bbc111
fix(es/minifier): Avoid dropping statements which has side-effects ( #6476 )
2022-11-20 00:26:52 +00:00
SWC Bot
a4ed624f81
chore: Publish crates
2022-11-18 07:56:33 +00:00
Donny/강동윤
15ad2c2568
fix(es/minifier): Abort inliner on fn declarations used multiple time ( #6473 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6463 .
2022-11-18 07:53:13 +00:00
SWC Bot
e45c66535c
chore: Publish crates
2022-11-18 07:19:26 +00:00
Alexander Akait
3e702b9804
fix(es/parser): Fix parsing of regexp ( #6469 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6322 .
- Closes https://github.com/swc-project/swc/issues/6323 .
2022-11-18 07:16:22 +00:00
SWC Bot
d78c5452ea
chore: Publish crates
2022-11-18 06:38:53 +00:00
Donny/강동윤
072bd13023
fix(es/modules): Remove wrong check for jsc.paths
( #6470 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6466 .
2022-11-18 06:35:49 +00:00
SWC Bot
e8b0b1c344
chore: Publish crates
2022-11-18 06:01:51 +00:00
Donny/강동윤
ca20d94a74
fix(es/lints): Revert check for reassignment to classes ( #6472 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6471 .
2022-11-18 05:58:48 +00:00
SWC Bot
19b45d299f
chore: Publish crates
2022-11-18 03:26:21 +00:00
Alexander Akait
3a0d98b6e9
fix(xml/parser): Fix parsing of comments ( #6449 )
2022-11-18 03:22:13 +00:00
SWC Bot
84c0215822
chore: Publish crates
2022-11-18 02:36:31 +00:00
Alexander Akait
7f6bf59a98
feat(html/minifier): Use the latest EsVersion
( #6453 )
2022-11-18 02:32:55 +00:00
SWC Bot
e055d2c4f8
chore: Publish crates
2022-11-18 01:24:23 +00:00
OJ Kwon
dd4b9e87de
refactor(bindings): Deprecate jsvalue::*_serde
( #6462 )
2022-11-18 10:21:23 +09:00
SWC Bot
44b0790dcd
chore: Publish crates
2022-11-17 06:04:26 +00:00
Alexander Akait
4d7b920bd4
feat(es/minifier): Support script fully ( #6455 )
2022-11-17 06:00:42 +00:00
SWC Bot
7716f58303
chore: Publish crates
2022-11-17 02:04:20 +00:00
Austaras
f7072dbb7e
fix(es/compat): Fix consecutive optional call ( #6461 )
2022-11-17 02:00:46 +00:00
SWC Bot
c333b0d079
chore: Publish crates
2022-11-17 01:27:15 +00:00
Alexander Akait
74417217a9
feat(html/minifier): Remove empty script and style tags with attributes ( #6447 )
2022-11-17 01:22:56 +00:00
SWC Bot
95d274e403
chore: Publish crates
2022-11-17 00:55:18 +00:00
HeYunfei
dabea71c44
fix(es/minifier): Preserve unused imported specifiers ( #6458 )
2022-11-17 00:52:19 +00:00
SWC Bot
e2b5ac60ec
chore: Publish crates
2022-11-16 05:46:06 +00:00
SWC Bot
0d30c7f463
chore: Publish crates
2022-11-16 04:54:58 +00:00
Donny/강동윤
05d185d59b
fix(es/modules): Fix jsc.paths
( #6454 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6446 .
2022-11-16 04:51:59 +00:00
SWC Bot
ba9f47d356
chore: Publish crates
2022-11-16 04:13:27 +00:00
Alexander Akait
638892071a
fix(xml/parser): Fix parsing of pi ( #6450 )
2022-11-16 04:10:02 +00:00
SWC Bot
df7498121a
chore: Publish crates
2022-11-16 03:34:52 +00:00
Alexander Akait
1dfd8cef88
fix(html/minifier): Fix script/style merging ( #6443 )
2022-11-16 03:31:03 +00:00
SWC Bot
0dac06cea2
chore: Publish crates
2022-11-16 02:58:26 +00:00
OJ Kwon
f14b156a60
fix(es/plugins/proxy): Adjust import with compile time flags ( #6451 )
2022-11-16 02:55:03 +00:00
Donny/강동윤
9600308108
feat(css/parser): Add parse_string_input
( #6441 )
2022-11-15 08:05:43 +00:00
SWC Bot
4d6b182dc2
chore: Publish crates
2022-11-15 07:03:31 +00:00
Donny/강동윤
bb544ba2f5
fix(es/minifier): Fix code for dropping unreachable statements ( #6429 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6405 .
2022-11-15 07:00:14 +00:00
SWC Bot
e117bc47f9
chore: Publish crates
2022-11-15 05:52:19 +00:00
SWC Bot
382d2c3bda
chore: Publish crates
2022-11-15 04:53:54 +00:00
Donny/강동윤
948e35bcd6
fix(bindings): Revert #6436 ( #6444 )
2022-11-15 13:50:53 +09:00
SWC Bot
6cc71e9493
chore: Publish crates
2022-11-15 02:32:13 +00:00
Donny/강동윤
99934b09f7
fix(es/minifier): Change the default of mangle.toplevel
to false ( #6439 )
2022-11-15 02:28:38 +00:00
SWC Bot
6d4dcfd18c
chore: Publish crates
2022-11-15 01:52:06 +00:00
Alexander Akait
3d7545d89b
fix(css/parser): Fix a bug with scope in block ( #6402 )
2022-11-15 01:49:05 +00:00
SWC Bot
fafc6257c8
chore: Publish crates
2022-11-15 00:55:38 +00:00
SWC Bot
e6e71b5b37
chore: Publish crates
2022-11-15 00:25:10 +00:00
Donny/강동윤
5fd7ab87b6
fix(es/minifier): Preserve op of the op-assignments in seq inliner ( #6428 )
...
**Description:**
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6407 .
2022-11-15 00:22:06 +00:00
SWC Bot
3c42789923
chore: Publish crates
2022-11-14 23:49:23 +00:00
OJ Kwon
1dd8b3d9d5
refactor(bindings): Deprecate JsValue::*_serde
( #6436 )
2022-11-14 23:46:13 +00:00
SWC Bot
cdc1b4cea4
chore: Publish crates
2022-11-14 06:06:09 +00:00
Donny/강동윤
81a4bb304a
fix(es/compat): Fix span hygiene of function naming pass ( #6345 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6344 .
2022-11-14 06:03:09 +00:00
SWC Bot
b97a59bb3f
chore: Publish crates
2022-11-14 05:34:02 +00:00
Donny/강동윤
9c9c3ebd2c
fix(es/modules): Fix jsc.paths
of .ts
imports ( #6431 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6432 .
2022-11-14 05:30:40 +00:00
Donny/강동윤
9de2a123df
chore: Publish crates
2022-11-14 13:09:46 +09:00
SWC Bot
6672c52af2
chore: Publish crates
2022-11-13 23:55:36 +00:00
magic-akari
67286032b1
fix(es/compat): Improve destructuring
pass ( #6412 )
2022-11-13 23:52:34 +00:00
SWC Bot
81816f97d5
chore: Publish crates
2022-11-13 23:21:16 +00:00
OJ Kwon
7a1c2a1e2c
refactor(es/plugins): Simplify read_result_*
( #6426 )
2022-11-13 23:17:41 +00:00
SWC Bot
e25b7389ff
chore: Publish crates
2022-11-13 12:33:33 +00:00
SWC Bot
c74f922311
chore: Publish crates
2022-11-13 08:44:40 +00:00
magic-akari
68ffc5bc3e
fix(es/utils): Verify the name of an alias ( #6423 )
2022-11-13 08:41:48 +00:00
Donny/강동윤
0bc51b71d9
chore: Publish crates
2022-11-13 09:00:01 +09:00
SWC Bot
27225a0eeb
chore: Publish crates
2022-11-12 08:26:39 +00:00
SWC Bot
2088dd4a84
chore: Publish crates
2022-11-11 22:50:50 +00:00
Andreas
b6c1cc49e1
fix(es/plugin): Print more details on pointer conversion failures ( #6378 )
2022-11-11 22:47:44 +00:00
SWC Bot
8d8f058d36
chore: Publish crates
2022-11-11 08:50:00 +00:00
Alexander Akait
a923e52d8f
fix(html/minifier): Fix merging of scripts ( #6393 )
2022-11-11 08:47:05 +00:00
SWC Bot
6ba1f5c09f
chore: Publish crates
2022-11-11 07:31:04 +00:00
Alexander Akait
983ab91435
refactor(css/parser): Refactor parser ( #6395 )
2022-11-11 07:27:19 +00:00
SWC Bot
c1588eb3e5
chore: Publish crates
2022-11-11 02:00:43 +00:00
Austaras
574502a816
feat(es/utils): Use more unique names for aliases ( #6399 )
2022-11-11 01:57:49 +00:00
SWC Bot
c39380d7a0
chore: Publish crates
2022-11-11 01:27:12 +00:00
Alexander Akait
ec2c021255
perf(css/ast): Use Atom
for raw
values ( #6401 )
2022-11-11 01:24:11 +00:00
SWC Bot
e5ad5e5f61
chore: Publish crates
2022-11-10 09:42:35 +00:00
SWC Bot
f16f93c668
chore: Publish crates
2022-11-10 03:40:39 +00:00
Alexander Akait
d18eaf1698
fix(css/parser): Fix parsing of <general-enclosed>
( #6380 )
2022-11-10 12:37:14 +09:00
SWC Bot
4035f59d7e
chore: Publish crates
2022-11-10 02:47:50 +00:00
Alexander Akait
56bc6b8794
refactor(css/parser): Skip whitespaces in correct places ( #6382 )
2022-11-10 02:44:53 +00:00
SWC Bot
10fc03ae43
chore: Publish crates
2022-11-10 02:13:01 +00:00
Alexander Akait
434a7657ed
refactor(css/parser): Union input types ( #6385 )
2022-11-10 02:10:23 +00:00
SWC Bot
68c8c33d29
chore: Publish crates
2022-11-10 01:39:43 +00:00
Alexander Akait
bea6cce0c6
perf(css): Reduce size of tokens ( #6384 )
2022-11-10 01:36:53 +00:00
SWC Bot
c428e82ac6
chore: Publish crates
2022-11-10 01:09:07 +00:00
OJ Kwon
26b21b1d21
feat(swc_core): Expose swc_css_modules
( #6394 )
2022-11-10 01:05:55 +00:00
SWC Bot
c356f96820
chore: Publish crates
2022-11-09 06:32:39 +00:00
Donny/강동윤
6b876c4c4f
fix(es/resolver): Resolve interfaces correctly ( #6387 )
...
**Related issue:**
- https://github.com/dudykr/stc/pull/245 .
2022-11-09 06:28:58 +00:00
SWC Bot
0e03e4e506
chore: Publish crates
2022-11-09 02:30:28 +00:00
Austaras
156f370af9
fix(es): Use unresolved_mark
for preset-env ( #6386 )
2022-11-09 02:27:10 +00:00
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
Donny/강동윤
12443db39a
feat(es/minifier): Merge functions using sequential inliner ( #6148 )
2022-10-20 02:24:09 +00:00
SWC Bot
0c23592d14
chore: Publish crates
2022-10-20 01:50:04 +00:00
Donny/강동윤
e9ac7a7396
chore(ci): Fix auto-publish action ( #6214 )
2022-10-20 01:46:44 +00:00
Austaras
0e2de3069d
fix(es/compat): Fix super method call in loose mode ( #6207 )
2022-10-20 00:20:43 +00:00
SWC Bot
62a9405acf
chore: Publish crates
2022-10-19 23:46:12 +00:00
Donny/강동윤
1b0dad1e84
fix(html/ast): Fix compilation ( #6211 )
2022-10-20 08:43:16 +09:00
SWC Bot
9de0b6e398
chore: Publish crates
2022-10-19 23:35:18 +00:00
Alexander Akait
420ba32e8c
perf(html/ast): Use Atom
for raw
( #6210 )
2022-10-19 23:32:22 +00:00
OJ Kwon
8ab10f661b
build(bindings): Update mimalloc ( #6208 )
2022-10-19 15:51:00 +00:00
SWC Bot
3613c00deb
chore: Publish crates
2022-10-19 15:13:38 +00:00
Alexander Akait
99ea28674a
feat(html/ast): Add raw
to comment tokens ( #6202 )
2022-10-19 15:10:57 +00:00
SWC Bot
6008995db1
chore: Publish crates
2022-10-19 04:56:51 +00:00
Donny/강동윤
27896f4751
perf(es/transforms): Exclude old inlining pass ( #6203 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6194 .
2022-10-19 04:53:46 +00:00
SWC Bot
b48ec880fd
chore: Publish crates
2022-10-19 04:00:51 +00:00
Alexander Akait
6c170e59c7
refactor(css/ast): Refactor dashed ident ( #6198 )
2022-10-19 03:58:16 +00:00
SWC Bot
14a612447f
chore: Publish crates
2022-10-19 03:28:52 +00:00
Alexander Akait
35466322d6
fix(html/minifier): Fix bugs of merging and removing metadata elements ( #6200 )
2022-10-19 03:25:18 +00:00
SWC Bot
dc2c416bee
chore: Publish crates
2022-10-19 02:54:47 +00:00
Alexander Akait
ac7cfa13b6
fix(css/minifier): Don't touch @supports
( #6199 )
2022-10-19 02:51:49 +00:00
SWC Bot
287c2f2941
chore: Publish crates
2022-10-19 02:18:35 +00:00
Donny/강동윤
842abd4575
fix(es/minifier): Remove wrong rule ( #6201 )
...
**Related issue:**
- https://github.com/vercel/next.js/issues/41527 .
2022-10-19 02:14:38 +00:00
SWC Bot
a049ef058b
chore: Publish crates
2022-10-18 14:51:39 +00:00
Alexander Akait
0ba464d643
fix(html/minifier): Compress exportparts
( #6187 )
2022-10-18 14:48:47 +00:00
SWC Bot
3fe4c45a08
chore: Publish crates
2022-10-18 14:18:44 +00:00
Alexander Akait
8f00d1a934
feat(html/minifier): Compress javascript:
URLs ( #6185 )
2022-10-18 14:15:43 +00:00
SWC Bot
a81cc9ac88
chore: Publish crates
2022-10-18 13:44:31 +00:00
Alexander Akait
41093b022d
feat(html/minifier): Merge identical metadata elements ( #6183 )
2022-10-18 13:40:59 +00:00
SWC Bot
789ea16fc8
chore: Publish crates
2022-10-18 05:41:47 +00:00
Austaras
aefc11b8a7
feat(es/compat): Support readonly and writeonly for private fields ( #6182 )
2022-10-18 05:38:36 +00:00
SWC Bot
a029ca2430
chore: Publish crates
2022-10-18 03:39:03 +00:00
Alexander Akait
4fba0db3d9
fix(css/codegen): Fix codegen of pseudo class selectors ( #6186 )
2022-10-18 12:35:53 +09:00
SWC Bot
e30316626f
chore: Publish crates
2022-10-18 02:54:12 +00:00
Donny/강동윤
f2e8f98d38
feat(es/minifier): Skip function declarations in sequential inliner ( #6147 )
2022-10-18 02:51:05 +00:00
SWC Bot
b197a62b5e
chore: Publish crates
2022-10-18 02:16:46 +00:00
Donny/강동윤
3f0fcf4fa9
feat(es/minifier): Make sequential inliner self-repeat ( #6168 )
2022-10-18 02:13:39 +00:00
SWC Bot
25df5b37af
chore: Publish crates
2022-10-18 01:44:30 +00:00
Alexander Akait
6e2e2ada4e
refactor(css/parser): Improve project structure ( #6110 )
2022-10-18 01:41:59 +00:00
SWC Bot
4cd7efcc07
chore: Publish crates
2022-10-18 01:10:26 +00:00
Alexander Akait
5571c0c202
fix(html/minifier): Avoid ;
at the end of js ( #6188 )
2022-10-18 01:07:15 +00:00
SWC Bot
8ec2e8de63
chore: Publish crates
2022-10-18 00:23:49 +00:00
Alexander Akait
a4acc7ab07
test(html/parser): Refactor tests to make git
faster ( #6158 )
2022-10-18 09:20:35 +09:00
SWC Bot
d34cdd224a
chore: Publish crates
2022-10-17 13:19:23 +00:00
Alexander Akait
7a38fde230
test(html/parser): Update html5lib-test ( #6156 )
2022-10-17 13:16:50 +00:00
SWC Bot
701c3c0367
chore: Publish crates
2022-10-17 12:42:46 +00:00
Alexander Akait
d46a19b554
feat(css/ast): Support @custom-media
at-rule ( #6152 )
2022-10-17 12:40:00 +00:00
SWC Bot
21b7605bee
chore: Publish crates
2022-10-17 12:11:23 +00:00
Vincent Ricard
d4a733d764
feat(css/minifier): Handle nested calc()
( #6153 )
2022-10-17 12:08:43 +00:00
SWC Bot
30f3de2fe2
chore: Publish crates
2022-10-17 11:34:48 +00:00
Donny/강동윤
e8a80c8a8b
chore: Publish v1.3.9
( #6177 )
2022-10-17 20:32:18 +09:00
SWC Bot
fde2941f79
chore: Publish crates
2022-10-17 11:20:07 +00:00
Donny/강동윤
d13a397360
build(es/plugin): Fix Wasm build ( #6181 )
2022-10-17 20:17:29 +09:00
SWC Bot
c24c56cb57
chore: Publish crates
2022-10-17 11:08:37 +00:00
Donny/강동윤
ea4ae3dfbc
build(es/plugin): Fix Wasm build, really ( #6180 )
2022-10-17 20:06:08 +09:00
SWC Bot
995c701bc4
chore: Publish crates
2022-10-17 10:33:10 +00:00
Donny/강동윤
7c40e44d3f
build(es/plugin): Fix Wasm build ( #6179 )
2022-10-17 19:30:28 +09:00
SWC Bot
167359e089
chore: Publish crates
2022-10-17 09:38:57 +00:00
Donny/강동윤
cb8f3500b2
fix(es/plugin): Fix plugin on non x86_64
( #6178 )
2022-10-17 09:36:26 +00:00
SWC Bot
fed888f822
chore: Publish crates
2022-10-17 08:33:49 +00:00
Donny/강동윤
0ca5ded618
fix(es/parser): Fix parsing of arrow in cond ( #6067 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/4911 .
2022-10-17 08:31:11 +00:00
SWC Bot
99c55dc93b
chore: Publish crates
2022-10-16 15:52:36 +00:00
Austaras
9d93b6cd85
fix(es/typescript): Don't generate class field for abstract properties ( #6174 )
2022-10-17 00:49:37 +09:00
SWC Bot
b3b8e2192d
chore: Publish crates
2022-10-16 00:28:22 +00:00
magic-akari
82cca674e3
fix(es/modules): Resolve jsc.paths
for export alls ( #6170 )
2022-10-16 00:25:55 +00:00
SWC Bot
c3ba51f48e
chore: Publish crates
2022-10-15 23:59:27 +00:00
Kevin Barabash
083924c0e1
fix(es/codegen): Emit readonly
for TsIndexSignature
( #6172 )
2022-10-16 08:56:56 +09:00
SWC Bot
78f2d6012c
chore: Publish crates
2022-10-15 12:55:40 +00:00
Donny/강동윤
2e153e5555
fix(es/minifier): Don't create a numeric literal with NaN
value ( #6166 )
2022-10-15 12:52:34 +00:00
SWC Bot
23e30fd149
chore: Publish crates
2022-10-15 09:14:15 +00:00
Donny/강동윤
aec5cdacc6
fix(es/minifier): Preserve this
of tagged template literals ( #6165 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6146
2022-10-15 09:11:20 +00:00
SWC Bot
ba6d714fe7
chore: Publish crates
2022-10-15 06:24:26 +00:00
Alexander Akait
0f38e38984
feat(css/minifier): Handle zero in at-rules ( #6155 )
2022-10-15 06:21:20 +00:00
SWC Bot
16df44221f
chore: Publish crates
2022-10-15 05:50:28 +00:00
Austaras
b40d486253
fix(es/minifier): Consider function body cost while inlining function ( #5342 )
2022-10-15 05:47:56 +00:00
SWC Bot
3352c4543b
chore: Publish crates
2022-10-15 05:21:07 +00:00
Donny/강동윤
899021e440
fix(es/plugin): Disable SIMD ( #6163 )
...
**Description:**
This PR disables SIMD for all hosts because wasmer cache is not portable.
2022-10-15 05:18:19 +00:00
SWC Bot
608aa94935
chore: Publish crates
2022-10-15 04:39:37 +00:00
Donny/강동윤
6d0ca05cb5
fix(es/minifier): Fix ordering issue of analyzer ( #6150 )
...
**Description:**
This is the groundwork for a parallel analyzer. This PR fixes the ordering issue of the analyzer so that the analyzer works identically regardless of the visit order. This patch contains some improvements because previously, we mixed `.and_modify()` and `.or_default()`.
2022-10-15 04:37:11 +00:00
SWC Bot
4e079b221d
chore: Publish crates
2022-10-15 03:06:30 +00:00
Fy
65029793a6
fix(es/quote): Fix handling of template literals ( #6157 )
2022-10-15 12:03:39 +09:00
SWC Bot
1ed0203262
chore: Publish crates
2022-10-14 14:49:13 +00:00
Alexander Akait
26aeb18c0c
fix(css/parser): Improve handling of math functions in at-rules ( #6140 )
2022-10-14 14:46:36 +00:00
SWC Bot
a50b5aeeb1
chore: Publish crates
2022-10-14 10:42:11 +00:00
Donny/강동윤
6a42e511e8
feat(es/utils): Add indexed API to the parallel helper ( #6149 )
2022-10-14 10:39:36 +00:00
SWC Bot
8f349f8bac
chore: Publish crates
2022-10-14 03:33:09 +00:00
SWC Bot
ef5ed9b4a9
chore: Publish crates
2022-10-14 03:00:49 +00:00
Donny/강동윤
d334c6e783
feat(es/minifier): Ignore return value if a param of IIFE is not used ( #6115 )
2022-10-14 02:58:00 +00:00
SWC Bot
e46a192cb6
chore: Publish crates
2022-10-14 02:25:59 +00:00
Donny/강동윤
1196d60182
feat(css/modules): Add a lifetime to config parameter ( #6144 )
2022-10-14 01:40:50 +00:00
SWC Bot
5c4a2c69b4
chore: Publish crates
2022-10-14 01:00:35 +00:00
SWC Bot
3ff55caa38
chore: Publish crates
2022-10-14 00:35:25 +00:00
Donny/강동윤
3d271e82a2
fix(es/minifier): Preserve return values of recursive IIFE ( #6142 )
...
**Description:**
This PR fixes the logic for dropping return values of IIFE.
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6141 .
2022-10-14 09:32:56 +09:00
SWC Bot
31023f8e7e
chore: Publish crates
2022-10-13 23:38:26 +00:00