Commit Graph

2746 Commits

Author SHA1 Message Date
SWC Bot
bdc3797369 chore: Publish crates 2022-06-07 04:36:09 +00:00
Alexander Akait
da09c1ca5b
feat(html/codegen): Improve entity compression (#4889) 2022-06-07 04:33:33 +00:00
SWC Bot
44e606a240 chore: Publish crates 2022-06-06 03:38:16 +00:00
Alexander Akait
ce4d57735e
perf(html/parser): Improve memory allocation (#4884) 2022-06-06 03:35:22 +00:00
SWC Bot
c46045f646 chore: Publish crates 2022-06-06 03:03:11 +00:00
Alexander Akait
b14719c046
refactor(html/ast): Avoid TokenAndSpan (#4885) 2022-06-06 12:00:14 +09:00
SWC Bot
3d39104601 chore: Publish crates 2022-06-05 20:46:50 +00:00
Alexander Akait
ae1ff1e55b
feat(html/codegen): Support context element (#4887) 2022-06-05 20:43:56 +00:00
Donny/강동윤
3812fb2eb0 chore: Publish crates 2022-06-06 05:22:39 +09:00
SWC Bot
6c4f2751fc chore: Publish crates 2022-06-05 20:19:14 +00:00
Alexander Akait
5abe847c23
perf(html/parser): Improve performance (#4881) 2022-06-05 20:16:27 +00:00
Donny/강동윤
eb0acc3859 chore: Publish crates 2022-06-06 04:54:19 +09:00
Donny/강동윤
066c8722d4 chore: Publish v1.2.197 2022-06-06 00:35:37 +09:00
SWC Bot
0d05246f41 chore: Publish crates 2022-06-05 14:43:37 +00:00
OJ Kwon
6bc33cb042
feat(es/codegen): Support other source map implementations (#4879) 2022-06-05 14:40:55 +00:00
SWC Bot
4cda20c8cd chore: Publish crates 2022-06-05 07:46:31 +00:00
Donny/강동윤
06420d99bb
fix(es/minifier): Don't drop typeof (#4883) 2022-06-05 07:43:53 +00:00
SWC Bot
098115573d chore: Publish crates 2022-06-05 05:54:57 +00:00
Austaras
83ae6a1f1f
feat(es/minifier): Remove extra parens in BinExpr (#4878) 2022-06-05 05:52:22 +00:00
SWC Bot
369b65b890 chore: Publish crates 2022-06-04 17:54:04 +00:00
Alexander Akait
6e0f5f1c48
feat(html/minifier): Remove spaces between nodes (#4880) 2022-06-04 17:51:36 +00:00
Alexander Akait
ad9508a796
test(html/parser): Test html5lib spans (#4875) 2022-06-05 02:29:24 +09:00
SWC Bot
223d14db4e chore: Publish crates 2022-06-04 09:36:13 +00:00
Alexander Akait
0d5d7c4d5e
fix(html/parser): Fix span (#4868) 2022-06-04 09:33:25 +00:00
SWC Bot
0968d7426f chore: Publish crates 2022-06-03 05:01:33 +00:00
Alexander Akait
8b67bb99fa
perf(html/parser): Improve lexer performance (#4869) 2022-06-03 04:58:46 +00:00
Alexander Akait
762c72d1c9
test(html/parser): Refactor tests (#4865) 2022-06-03 04:35:19 +00:00
SWC Bot
e93102e0a3 chore: Publish crates 2022-06-02 04:02:53 +00:00
Alexander Akait
67b5e3d5b3
fix(html/parser): Fix end span of closed tags (#4860) 2022-06-02 04:00:32 +00:00
SWC Bot
c119847256 chore: Publish crates 2022-06-01 02:54:25 +00:00
Donny/강동윤
fd3501bf87
feat(wasm): Add json error (#4853) 2022-06-01 11:51:24 +09:00
SWC Bot
4dfc4d7dbd chore: Publish crates 2022-06-01 00:37:05 +00:00
Alexander Akait
e083d0eb5a
fix(css/parser): Fix parsing of constant function (#4856) 2022-06-01 00:34:20 +00:00
SWC Bot
c1a516c207 chore: Publish crates 2022-06-01 00:15:49 +00:00
Alexander Akait
c5df1a3a54
feat(html/minifier): Improve compression of attributes (#4849) 2022-06-01 00:07:19 +00:00
SWC Bot
cbec3819e1 chore: Publish crates 2022-05-31 03:52:39 +00:00
Alexander Akait
f830726027
fix(html/parser): Fix span of lexer errors (#4846) 2022-05-31 03:50:19 +00:00
Donny/강동윤
7bfba69728 chore: Publish v1.2.196 2022-05-31 12:12:25 +09:00
Donny/강동윤
142387b2a3
chore(ci): Fix CI (#4852) 2022-05-31 12:07:51 +09:00
SWC Bot
c78952e4d5 chore: Publish crates 2022-05-30 07:10:31 +00:00
Alexander Akait
e6ae299776
feat(html/minifier): Compress viewport meta (#4844) 2022-05-30 07:07:52 +00:00
SWC Bot
8a9abfbe10 chore: Publish crates 2022-05-30 06:48:44 +00:00
Donny/강동윤
8365c3d0df
fix(es/minifier): Make if_return to not drop required returns (#4847) 2022-05-30 06:46:01 +00:00
SWC Bot
866664163e chore: Publish crates 2022-05-30 06:22:43 +00:00
Alexander Akait
20fee8abee
fix(html/parser): Handle BOM (#4843) 2022-05-30 06:20:02 +00:00
SWC Bot
c523832c80 chore: Publish crates 2022-05-30 06:00:10 +00:00
Alexander Akait
7407f218f8
fix(html/codegen): Prevent omitting body for title (#4814) 2022-05-30 05:57:26 +00:00
SWC Bot
19562af0c7 chore: Publish crates 2022-05-29 11:17:45 +00:00
Donny/강동윤
0567f67664
fix(es/minifier): Apply name mangler for more cases (#4840) 2022-05-29 11:15:16 +00:00
Donny/강동윤
61b9a74c6f chore: Publish v1.2.195 2022-05-29 18:12:44 +09:00
SWC Bot
473ea158c6 chore: Publish crates 2022-05-28 19:05:40 +00:00
Donny/강동윤
c462d4d7c6
fix(node): Fix logging (#4833) 2022-05-28 19:00:53 +00:00
Donny/강동윤
2e9ab0518a
feat(node): Split css binding (#4831) 2022-05-28 14:32:56 +00:00
SWC Bot
dd9c06e1c5 chore: Publish crates 2022-05-28 08:36:47 +00:00
Alexander Akait
2b7f4b2f56
fix(html/codegen): Omit on more cases (#4825) 2022-05-28 08:34:00 +00:00
Donny/강동윤
f847709787
chore(common): Update rustc (#4828) 2022-05-28 07:07:58 +00:00
SWC Bot
7f731a2ab2 chore: Publish crates 2022-05-28 04:35:18 +00:00
Donny/강동윤
58b24278ee
perf(es/minifier): Make name mangler parallel (#4824) 2022-05-28 13:32:48 +09:00
SWC Bot
800118c45b chore: Publish crates 2022-05-27 14:47:53 +00:00
Alexander Akait
c9d0e37ab9
fix(html/codegen): Remove optional html start tag (#4811) 2022-05-27 14:45:18 +00:00
SWC Bot
abbc317f47 chore: Publish crates 2022-05-27 12:51:18 +00:00
Alexander Akait
759688c412
perf(html/parser): Improve lexer performance even more (#4819) 2022-05-27 12:48:51 +00:00
SWC Bot
c9388326d6 chore: Publish crates 2022-05-27 08:43:41 +00:00
Alexander Akait
d833057d79
fix(html/codegen): Handle HTML entities correctly (#4782) 2022-05-27 08:39:30 +00:00
Donny/강동윤
7f69b9c80f
test(es/minifier): Add snapshots for the mangler (#4823)
I found a way to make the name mangler parallel, but I want to ensure that we don't break anything.
2022-05-27 07:32:23 +00:00
SWC Bot
23bc98b17d chore: Publish crates 2022-05-27 07:12:22 +00:00
Alexander Akait
731c59e9b7
feat(html/minifier): Compress more json types (#4813) 2022-05-27 07:09:28 +00:00
SWC Bot
05f9e257a0 chore: Publish crates 2022-05-27 06:50:43 +00:00
Donny/강동윤
4b27df9f12
perf(es/minifier): Make more passes parallel (#4821) 2022-05-27 06:48:08 +00:00
SWC Bot
01e90a650c chore: Publish crates 2022-05-27 06:25:17 +00:00
Pig Fang
29884b0caf
feat(css/ast): Add missing Is derive (#4810) 2022-05-27 06:22:36 +00:00
SWC Bot
c4a6e8e4b5 chore: Publish crates 2022-05-27 05:59:56 +00:00
Sander Mathijs van Veen
1db71cc3b3
fix(es/codegen): Handle comments in binary expressions (#4817) 2022-05-27 05:57:24 +00:00
SWC Bot
e770651698 chore: Publish crates 2022-05-27 05:37:39 +00:00
Alexander Akait
a6beda81ca
test(html/codegen): Avoid newline at the end of file (#4815) 2022-05-27 05:35:17 +00:00
SWC Bot
af31b15e70 chore: Publish crates 2022-05-27 05:15:50 +00:00
Donny/강동윤
dc911dcae6
feat(es/compat): Don't create vars for computed class methods if possible (#4805) 2022-05-27 05:12:57 +00:00
SWC Bot
424e62e663 chore: Publish crates 2022-05-26 16:01:22 +00:00
Donny/강동윤
a487fc1d28
refactor(es/transforms): Remove concurrent (#4808) 2022-05-26 15:58:19 +00:00
SWC Bot
8f48d0fdaf chore: Publish crates 2022-05-26 15:35:07 +00:00
Donny/강동윤
78d4c2c46a
fix(preset-env): Ignore unknown versions (#4809) 2022-05-26 15:32:06 +00:00
SWC Bot
2086e66eb3 chore: Publish crates 2022-05-26 13:09:21 +00:00
Donny/강동윤
f4c6a20654
fix(es/modules): Fix lazy option of common js (#4807) 2022-05-26 13:06:43 +00:00
SWC Bot
a163279c88 chore: Publish crates 2022-05-26 11:35:19 +00:00
Austaras
573bcb5b49
fix(es/compat): Use define for non-spread props (#4754) 2022-05-26 20:32:41 +09:00
SWC Bot
bebdb8a897 chore: Publish crates 2022-05-26 09:30:36 +00:00
Donny/강동윤
073b1469e6
fix(es/minifier): Don't create names which is same as an unresolved var (#4806) 2022-05-26 09:27:24 +00:00
SWC Bot
829a9c0dd3 chore: Publish crates 2022-05-26 07:40:07 +00:00
Donny/강동윤
1c48a8c8f4
fix(es/minifier): Consider side effects while removing an object spread (#4788) 2022-05-26 07:37:34 +00:00
SWC Bot
cf4c46517b chore: Publish crates 2022-05-26 06:15:59 +00:00
Alexander Akait
c35cb598f7
fix(html/minifier): Avoid removing id with spaces (#4786) 2022-05-26 06:13:39 +00:00
SWC Bot
e9559e7d13 chore: Publish crates 2022-05-26 05:51:57 +00:00
Alexander Akait
f71ef61cb7
perf(html/parser): Improve lexer (#4802) 2022-05-26 05:49:18 +00:00
SWC Bot
e9ce992250 chore: Publish crates 2022-05-25 18:11:42 +00:00
OJ Kwon
2b03047cb0
fix(es/modules): Fix local scoped amd require (#4800) 2022-05-25 18:08:49 +00:00
SWC Bot
54fd602bae chore: Publish crates 2022-05-25 17:35:52 +00:00
Alexander Akait
8894e77bc1
perf(html/parser): Improve lexer (#4796) 2022-05-25 17:33:15 +00:00
SWC Bot
7a122eb089 chore: Publish crates 2022-05-25 16:51:14 +00:00
Alexander Akait
c6ec9f9cf2
feat(html/codegen): Omit start and end tags if it is possible (#4780) 2022-05-25 16:48:33 +00:00
Donny/강동윤
c8f6f44a5d chore: Publish v1.2.194 2022-05-25 23:56:52 +09:00
SWC Bot
4b26cab74c chore: Publish crates 2022-05-25 14:54:28 +00:00
LongYinan
adf70f6c07
fix(common): Fix jemalloc (#4794) 2022-05-25 14:51:36 +00:00
Donny/강동윤
f4a60e2eda chore: Publish v1.2.193 2022-05-25 17:15:06 +09:00
SWC Bot
cb528459e8 chore: Publish crates 2022-05-25 08:13:08 +00:00
Donny/강동윤
6f04e84639
perf(common): Use jemalloc for linux (#4791) 2022-05-25 08:10:44 +00:00
Donny/강동윤
38a866a900
test(es): Make execution tests faster (#4789) 2022-05-25 06:23:35 +00:00
SWC Bot
f2d79b8495 chore: Publish crates 2022-05-25 03:05:21 +00:00
Alexander Akait
11aa6bee9e
feat(html/minifier): Sort classes (#4783) 2022-05-25 03:02:27 +00:00
SWC Bot
7eac561639 chore: Publish crates 2022-05-25 02:40:41 +00:00
Alexander Akait
b5e481c114
feat(html/minifier): Improve script type compression (#4785) 2022-05-25 02:35:43 +00:00
SWC Bot
ee2470c3cc chore: Publish crates 2022-05-25 02:12:44 +00:00
OJ Kwon
a937357d47
feat(plugin): Implement SourceMap.span_to_* (#4781) 2022-05-25 02:09:55 +00:00
Donny/강동윤
1337f3a550 chore: Publish v1.2.192 2022-05-24 23:39:57 +09:00
SWC Bot
3d496d6408 chore: Publish crates 2022-05-24 13:32:27 +00:00
Shinobu Hayashi
a3e4c201de
fix(es/compat): Escape keywords in class method names (#4775) 2022-05-24 13:29:59 +00:00
SWC Bot
6ba367116e chore: Publish crates 2022-05-24 13:02:50 +00:00
Alexander Akait
07c197f51c
feat(html/codegen): Omit end tags (#4770) 2022-05-24 12:54:12 +00:00
SWC Bot
f4d828feaf chore: Publish crates 2022-05-24 12:34:23 +00:00
Austaras
db1698e012
fix(es/compat): Handle nested break/continue in block_scoping (#4778) 2022-05-24 12:31:50 +00:00
SWC Bot
9857b2f4ca chore: Publish crates 2022-05-24 11:35:40 +00:00
Austaras
4f00914c1a
fix(es/compat): Handle nested for loops with break/continue (#4777) 2022-05-24 11:32:49 +00:00
Donny/강동윤
5ddd2dca6d chore: Publish v1.2.191 2022-05-24 20:03:55 +09:00
SWC Bot
85b1d35cc9 chore: Publish crates 2022-05-24 11:03:16 +00:00
Donny/강동윤
75bb8586cc
fix(es/modules): Adjust absolute path while rewriting imports (#4776) 2022-05-24 20:00:26 +09:00
SWC Bot
555e08d4d6 chore: Publish crates 2022-05-24 09:27:11 +00:00
brightwu
f28d9c143b
fix(es/resolver): Fix more edge cases related to catch and var (#4773) 2022-05-24 09:24:42 +00:00
SWC Bot
26578c8c0a chore: Publish crates 2022-05-24 07:55:58 +00:00
brightwu
e2da3ddc03
fix(es/resolver): Handle var after catch with the same name (#4772) 2022-05-24 16:53:13 +09:00
SWC Bot
43f9b94c3f chore: Publish crates 2022-05-24 07:22:08 +00:00
OJ Kwon
3298cb7906
feat(plugin): Implement more SourceMap apis (#4769) 2022-05-24 07:19:27 +00:00
SWC Bot
6fd58b0d8b chore: Publish crates 2022-05-24 06:59:31 +00:00
Alexander Akait
86626659b1
fix(html/codegen): Emit textarea and pre in foreign context (#4766) 2022-05-24 06:56:22 +00:00
SWC Bot
2771267c08 chore: Publish crates 2022-05-24 06:34:57 +00:00
Alexander Akait
c07780fab3
feat(html/parser): Improve public api (#4762) 2022-05-24 06:32:15 +00:00
Donny/강동윤
f9068df4a4 chore: Publish v1.2.190 2022-05-24 15:10:23 +09:00
SWC Bot
565fb38aec chore: Publish crates 2022-05-24 05:58:20 +00:00
Austaras
65b7c4b695
fix(es/fixer): Preserve the paren in a spread element (#4771) 2022-05-24 05:55:45 +00:00
SWC Bot
6730fbd778 chore: Publish crates 2022-05-24 05:06:51 +00:00
Alexander Akait
984d69e67b
test(html/parser): Enable error reporting tests (#4764) 2022-05-24 05:04:20 +00:00
SWC Bot
fd8a08a7e7 chore: Publish crates 2022-05-24 04:43:53 +00:00
Satish Srinivasan
8720f9a948
fix(es/compat): Fix span of instanceof (#4757) 2022-05-24 04:41:34 +00:00
Donny/강동윤
995e9661cc chore: Publish crates 2022-05-24 13:15:57 +09:00
SWC Bot
fa649d87be chore: Publish crates 2022-05-24 04:14:30 +00:00
Donny/강동윤
b8d2fb8546
feat(es/helpers): Import only used helpers (#4767) 2022-05-24 04:09:59 +00:00
SWC Bot
5be6661e9a chore: Publish crates 2022-05-23 22:11:58 +00:00
Donny/강동윤
20b724d3cd
feat(es/minifier): Implement more rules (#4763) 2022-05-23 22:09:33 +00:00
SWC Bot
f7dc3fff1f chore: Publish crates 2022-05-23 20:15:04 +00:00
OJ Kwon
065b2a514f
fix(es/typescript): Preserve referenced imports for namespace (#4759) 2022-05-24 05:12:39 +09:00
Donny/강동윤
ae39b02df3 chore: Publish crates 2022-05-24 03:13:24 +09:00
SWC Bot
b2e4406f0f chore: Publish crates 2022-05-23 16:04:00 +00:00
Pig Fang
07d31aa50a
fix(css/parser): Allow var() call in color functions (#4713) 2022-05-23 16:00:44 +00:00
SWC Bot
4f8484add0 chore: Publish crates 2022-05-23 13:07:01 +00:00
Donny/강동윤
e4dee1ed33
fix(es/minifier): Consider parameters while detecting pure calls (#4748) 2022-05-23 13:04:11 +00:00
SWC Bot
476c830a30 chore: Publish crates 2022-05-23 10:02:59 +00:00
Baoshuo Ren
22bf5f014e
chore(es/minifier): Add #[doc(hidden)] (#4751) 2022-05-23 19:00:22 +09:00
SWC Bot
ea92ae10e8 chore: Publish crates 2022-05-23 09:44:48 +00:00
Donny/강동윤
b7a195a1cf
refactor(es/parser): Remove duplicate (#4750) 2022-05-23 09:42:29 +00:00
SWC Bot
4d606effdf chore: Publish crates 2022-05-23 09:21:24 +00:00
Donny/강동윤
98df64517e
perf(common): Add more methods to Spanned (#4749)
- Lots of code only needs `lo` or `hi`, but they call `span()`, which is inefficient in some cases.
 - This PR only adds a trivial amount of optimization. I may add full optimization in future.
 - This PR improves codegen performance of `ExprOrSpread` and `Option<ExprOrSpread>`.
2022-05-23 09:18:40 +00:00
Donny/강동윤
0f85f7b9de
chore(ci): Fix CI (#4747) 2022-05-23 07:47:05 +00:00
Donny/강동윤
49b3c2715c
refactor(es/minifier): Make rust-analyzer fast, really (#4746) 2022-05-23 16:16:05 +09:00
Donny/강동윤
47e6cc5190
refactor(es/minifier): Make rust-analyzer faster (#4744)
- We now use a separate crate for testing the minifier. This makes IDE much faster.
2022-05-23 15:53:01 +09:00
SWC Bot
37b0056ad0 chore: Publish crates 2022-05-23 05:44:50 +00:00
Donny/강동윤
777ea371d0
fix(es/loader): Fix hang related to jsc.paths (#4742) 2022-05-23 05:42:20 +00:00
SWC Bot
8060264715 chore: Publish crates 2022-05-23 04:32:07 +00:00
Donny/강동윤
a51816a577
feat(es/minifier): Handle prefix update expressions with sequential inliner (#4741) 2022-05-23 04:29:31 +00:00
SWC Bot
516b0b804b chore: Publish crates 2022-05-23 04:06:56 +00:00
Alexander Akait
51f4cea103
feat(html/parser): Improve error reporting (#4740) 2022-05-23 04:04:20 +00:00
Donny/강동윤
417b2182ce
fix(es/loader): Fix jsc.paths on windows (#4739) 2022-05-22 20:12:22 +00:00
SWC Bot
624c4ad48b chore: Publish crates 2022-05-22 12:09:50 +00:00
Donny/강동윤
9e42382091
feat(es/minifier): Implement pure_funcs (#4710) 2022-05-22 12:07:28 +00:00
SWC Bot
032d584265 chore: Publish crates 2022-05-21 19:58:14 +00:00
Donny/강동윤
d9bb59a8cb
fix(es/modules/cjs): FIx detection of exported names (#4737) 2022-05-21 19:55:35 +00:00
SWC Bot
f7e000383c chore: Publish crates 2022-05-21 19:36:32 +00:00
Alexander Akait
c346d309a7
feat(html/parser): Improve error reporting (#4728) 2022-05-21 19:34:02 +00:00
SWC Bot
706b38787e chore: Publish crates 2022-05-21 19:11:24 +00:00
Donny/강동윤
41d4437671
fix(es/typescript): Mark namespaces as concrete (#4736) 2022-05-22 04:08:48 +09:00
SWC Bot
73d049123c chore: Publish crates 2022-05-21 18:34:49 +00:00
OJ Kwon
886585b90e
feat(es/modules/amd): Support local-scoped amd requires (#4727) 2022-05-21 18:32:34 +00:00
SWC Bot
2a8aa2cb6e chore: Publish crates 2022-05-21 18:11:57 +00:00
Alexander Akait
e9b2ebfc3b
feat(html/parser): Improve error reporting for misplaced non-space characters inside a table (#4723) 2022-05-21 18:09:33 +00:00
SWC Bot
3ae6644900 chore: Publish crates 2022-05-21 16:31:35 +00:00
Alexander Akait
1c4d50f06a
fix(html/parser): Fix parsing of closing tag in foreign contents (#4721) 2022-05-22 01:28:48 +09:00
SWC Bot
602be228db chore: Publish crates 2022-05-21 15:24:12 +00:00
Alexander Akait
4df0637817
fix(html/parser): Fix error reporting in the foreign context (#4725) 2022-05-21 15:22:10 +00:00
Donny/강동윤
dabdaca20c chore: Publish crates 2022-05-21 23:43:00 +09:00
Donny/강동윤
8994dd9a60 chore: Publish v1.2.189 2022-05-21 23:19:12 +09:00
Donny/강동윤
9966e98ac6
fix(es/config): Respect .swcrc (#4735) 2022-05-21 23:18:43 +09:00
SWC Bot
286e654c95 chore: Publish crates 2022-05-21 14:17:08 +00:00
magic-akari
ea46eb41e0
fix(es/codegen): Fix numeric literals (#4733) 2022-05-21 14:14:33 +00:00
SWC Bot
5ad70cd6d4 chore: Publish crates 2022-05-21 12:08:59 +00:00
Alexander Akait
4cee4ac238
fix(html/parser): Fix error reporting related to image (#4720) 2022-05-21 12:06:30 +00:00
Donny/강동윤
db96405e8e chore: Publish v1.2.188 2022-05-21 20:38:23 +09:00
SWC Bot
7357f72cb9 chore: Publish crates 2022-05-21 11:37:46 +00:00
Donny/강동윤
f1baff4114
fix(es/codegen): Fix numeric literals (#4731) 2022-05-21 20:31:19 +09:00
SWC Bot
e4596f3a64 chore: Publish crates 2022-05-21 11:24:09 +00:00
Alexander Akait
2c2e6bb65b
fix(html/parser): Fix handling of unclosed td/th (#4719) 2022-05-21 11:21:36 +00:00
SWC Bot
789af6b663 chore: Publish crates 2022-05-21 11:02:18 +00:00
Alexander Akait
5d0e8fbda4
feat(html/parser): Report an error for a legacy doctype (#4717) 2022-05-21 10:59:56 +00:00
SWC Bot
1b715a1a2b chore: Publish crates 2022-05-20 07:04:12 +00:00
Donny/강동윤
dc67911f61
feat(es/minifier): Implement more skipping rules for sequences (#4716) 2022-05-20 16:01:27 +09:00
SWC Bot
279f9db0b7 chore: Publish crates 2022-05-20 04:59:56 +00:00
Donny/강동윤
1358f452e7
fix(es/minifier): Consider more side effects while inlining (#4715) 2022-05-20 04:57:38 +00:00
SWC Bot
44124ac256 chore: Publish crates 2022-05-20 04:09:42 +00:00
Donny/강동윤
03dd9de1c3
fix(es/codegen): Exclude synthesized files from sourcemap (#4714) 2022-05-20 04:07:16 +00:00
Donny/강동윤
38abde1b44 chore: Publish v1.2.187 2022-05-20 11:59:58 +09:00
SWC Bot
4d2f4a826a chore: Publish crates 2022-05-19 07:15:15 +00:00
Kevin Barabash
72fbf692a4
fix(es/codegen): Don't add a newline after an arrow body (#4711) 2022-05-19 07:12:37 +00:00
Donny/강동윤
a8f156c050 chore: Publish crates 2022-05-19 14:34:32 +09:00
SWC Bot
224a2ea8b6 chore: Publish crates 2022-05-19 05:12:49 +00:00
Donny/강동윤
73dfa95e5a
fix(es/minifier): Fix analysis of assignment patterns (#4712) 2022-05-19 05:10:12 +00:00
Donny/강동윤
6f565fbb3a
test(es/minifier): Categorize more tests (#4709) 2022-05-19 04:33:11 +00:00
SWC Bot
0674c1d287 chore: Publish crates 2022-05-19 02:06:22 +00:00
Donny/강동윤
bf5ba28471
fix(es/config): Add jsc.output.charset (#4708) 2022-05-19 02:03:46 +00:00
SWC Bot
494343456d chore: Publish crates 2022-05-19 01:42:24 +00:00
Alexander Akait
0b39e1b3fc
fix(html/parser): Fix bugs (#4707) 2022-05-19 01:39:11 +00:00
SWC Bot
fc9a85f0f3 chore: Publish crates 2022-05-19 01:18:18 +00:00
Alexander Akait
cac8cee62a
feat(html/minifier): Compress characters in head (#4682) 2022-05-19 01:15:40 +00:00
SWC Bot
b509ca0c7b chore: Publish crates 2022-05-18 22:09:14 +00:00
magic-akari
100c0b58c9
fix(es/compat): Fix break in for await loop (#4705) 2022-05-18 22:06:48 +00:00
SWC Bot
5b96e9f6f3 chore: Publish crates 2022-05-18 21:37:05 +00:00
Donny/강동윤
5f45a3d496
fix(es/react): Fix span of error messages (#4704) 2022-05-18 21:34:36 +00:00
SWC Bot
6a7240f046 chore: Publish crates 2022-05-18 13:54:03 +00:00
Donny/강동윤
9a27b5f275
perf(es/minifier): Make minifier more parallel (#4699) 2022-05-18 13:51:25 +00:00
Donny/강동윤
e272ae0201 chore: Publish crates 2022-05-18 19:51:57 +09:00
SWC Bot
fe5b2e12af chore: Publish crates 2022-05-18 10:49:45 +00:00
Donny/강동윤
809a626a99
fix(es/minifier): Don't create keys with negative number (#4698) 2022-05-18 19:47:00 +09:00
SWC Bot
8d1a586206 chore: Publish crates 2022-05-18 10:24:05 +00:00
Donny/강동윤
ad309f4050
fix(es/config): Auto-detect tsx (#4696) 2022-05-18 10:21:45 +00:00
SWC Bot
d29a00c9cc chore: Publish crates 2022-05-18 08:42:52 +00:00
Donny/강동윤
274648ec26
feat(es/minifier): Improve if_return (#4694) 2022-05-18 08:39:57 +00:00
SWC Bot
9792cffefa chore: Publish crates 2022-05-18 07:27:53 +00:00
Donny/강동윤
183e884cbf
fix(es/minifier): Don't hoist functions with dead_code (#4695) 2022-05-18 07:25:25 +00:00
Donny/강동윤
b93af7ba61
test(es): Add a test for a fixed issue (#4693) 2022-05-18 05:34:05 +00:00
SWC Bot
787f14ec77 chore: Publish crates 2022-05-17 15:47:10 +00:00
David Sherret
606f7c967e
fix(common): Don't use reserved byte position (#4690) 2022-05-17 15:44:25 +00:00
SWC Bot
fc071d0ae7 chore: Publish crates 2022-05-17 11:08:15 +00:00
brightwu
7ce572b497
fix(es/modules): Fix reassignment of exported vars (#4688) 2022-05-17 11:06:03 +00:00
SWC Bot
2096a1da4f chore: Publish crates 2022-05-17 10:45:02 +00:00
Donny/강동윤
07356a5bba
fix(es/ast): Fix EqIgnoreSpan of Ident (#4689) 2022-05-17 10:21:01 +00:00
SWC Bot
f395caa5d1 chore: Publish crates 2022-05-17 08:26:09 +00:00
Alexander Akait
637ef7f49f
fix(html/parser): Fix span of attributes (#4681) 2022-05-17 08:23:24 +00:00
Donny/강동윤
75ed427ad5 chore: Publish v1.2.186 2022-05-17 17:01:53 +09:00
SWC Bot
f226c0a3d8 chore: Publish crates 2022-05-17 07:37:08 +00:00
Donny/강동윤
c01476d9ae
feat(es/minifier): Enable conditionals by default (#4687) 2022-05-17 07:34:47 +00:00
Alexander Akait
b56f3b7f00
perf(html): Setup benchmarks (#4685) 2022-05-17 04:30:24 +00:00
Alexander Akait
1d9ee0a100
test(html/parser): Add tests for broken html/svg (#4683) 2022-05-17 04:07:16 +00:00
SWC Bot
aa8fe92e0b chore: Publish crates 2022-05-17 03:47:02 +00:00
Alexander Akait
3aac28e9df
feat(html/minifier): Compress more json content (#4684) 2022-05-17 03:44:27 +00:00
SWC Bot
9a027ba7c2 chore: Publish crates 2022-05-17 03:16:51 +00:00
Donny/강동윤
fe1e62a5e7
perf(common): Improve performance of StringInput (#4680) 2022-05-17 03:14:14 +00:00
Donny/강동윤
04d66dbc8b
feat(es/minifier): Enable computed_props by default (#4678) 2022-05-16 12:51:38 +00:00
SWC Bot
b395a8b3ce chore: Publish crates 2022-05-16 12:30:22 +00:00
Donny/강동윤
3bb4b74d94
fix(es/minifier): Consider fallthrough while merging swtich cases (#4672) 2022-05-16 12:27:24 +00:00
SWC Bot
35a008d3f3 chore: Publish crates 2022-05-16 03:54:44 +00:00
Donny/강동윤
ba6688a783
feat(dbg-swc): Make reducer parallel (#4676) 2022-05-16 12:49:42 +09:00
SWC Bot
0aa3d96757 chore: Publish crates 2022-05-16 03:31:28 +00:00
Donny/강동윤
da49f810db
feat(es): Add check for BytePos::DUMMY (#4675) 2022-05-16 03:29:24 +00:00
SWC Bot
0a9c78872b chore: Publish crates 2022-05-16 03:04:15 +00:00
Donny/강동윤
36ff4f735f
test(es/minifier): Add size tests using dbg-swc (#4664) 2022-05-16 03:01:53 +00:00
Donny/강동윤
52407319b8 chore: Publish v1.2.185 2022-05-16 04:33:54 +09:00
Donny/강동윤
50db276d82
build(repo): Downgrade rustc (#4674) 2022-05-15 19:28:55 +00:00
SWC Bot
c34192c818 chore: Publish crates 2022-05-15 17:07:50 +00:00
Donny/강동윤
e3cda264bb
feat(dbg-swc): Add a command to diff semantics (#4671) 2022-05-15 17:05:39 +00:00
SWC Bot
e3ef5f8578 chore: Publish crates 2022-05-15 16:46:18 +00:00
Daniel Grant
49c40afb7e
fix(es/modules): Fix handling of import.meta.url (#4670) 2022-05-15 16:44:02 +00:00
SWC Bot
86efe781a3 chore: Publish crates 2022-05-15 16:24:33 +00:00
Donny/강동윤
e57123e61c
feat(es/minifier): Improve ignore_return_value (#4673) 2022-05-15 16:22:21 +00:00
Donny/강동윤
d420d2d275 chore: Publish v1.2.184 2022-05-16 00:01:04 +09:00
SWC Bot
a09bfc22f8 chore: Publish crates 2022-05-15 10:43:11 +00:00
Donny/강동윤
bfb6be7075
doc(es/codegen): Document ascii_only (#4669) 2022-05-15 10:40:41 +00:00
SWC Bot
8b9851a336 chore: Publish crates 2022-05-15 10:04:57 +00:00
Donny/강동윤
8a40b583a5
feat(es/minifier): Implement directives (#4668) 2022-05-15 10:02:55 +00:00
SWC Bot
d591ce8c0b chore: Publish crates 2022-05-15 09:39:48 +00:00
Donny/강동윤
96cec97b2c
fix(es/minifier): Don't inline a function if we need referential equality (#4665) 2022-05-15 09:37:34 +00:00
Donny/강동윤
98e4845fce
build(repo): Update rustc (#4667) 2022-05-15 09:03:54 +00:00
SWC Bot
4eece89ad4 chore: Publish crates 2022-05-15 08:41:24 +00:00
Donny/강동윤
11726cc0e1
perf(es/parser): Optimize for cpu code cache (#4666) 2022-05-15 08:39:09 +00:00
SWC Bot
ead25ee153 chore: Publish crates 2022-05-15 05:09:48 +00:00
Donny/강동윤
eb8508f88c
feat(es/codegen): Implement ascii-only (#4660) 2022-05-15 05:07:21 +00:00
SWC Bot
e602992de1 chore: Publish crates 2022-05-15 04:22:56 +00:00
Alexander Akait
a8467c64e8
feat(html/parser): Improve error reporting (#4663) 2022-05-15 04:20:21 +00:00
SWC Bot
7c73e372c6 chore: Publish crates 2022-05-15 03:53:54 +00:00
Austaras
1150e842ed
refactor(es/react): Use proper ident scope for react refresh (#4649) 2022-05-15 03:51:25 +00:00
SWC Bot
5341478c5b chore: Publish crates 2022-05-15 03:31:35 +00:00
Alexander Akait
69ca9497d0
feat(html): Support iframe_srcdoc (#4658) 2022-05-15 12:27:29 +09:00
SWC Bot
36a3cdaac2 chore: Publish crates 2022-05-14 07:08:36 +00:00
Donny/강동윤
053f42b3aa
feat(es/minifier): Improve minifier (#4655)
swc_ecma_transforms_base:
 - Improved `fixer`.

swc_ecma_minifier:
 - `ignore_return_value`: Support computed access to array literals.
2022-05-14 07:06:03 +00:00
SWC Bot
3149026d0f chore: Publish crates 2022-05-14 06:13:18 +00:00
Artur
9b226a7026
feat(es/lints): Implement no-sparse-arrays rule (#4652) 2022-05-14 06:10:49 +00:00
SWC Bot
c96cbe9b27 chore: Publish crates 2022-05-14 01:46:19 +00:00
Alexander Akait
1f945b9277
fix(html/parser): Fix error reporting (#4644) 2022-05-14 01:43:52 +00:00
SWC Bot
fbc10fc5c2 chore: Publish crates 2022-05-13 14:28:03 +00:00
Donny/강동윤
c8818b0499
feat(dbg-swc): Add auto-reducer for the minifier (#4654) 2022-05-13 23:25:16 +09:00
Donny/강동윤
f63be2fb9e chore: Publish crates 2022-05-13 19:08:09 +09:00
SWC Bot
69a81dcd58 chore: Publish crates 2022-05-13 09:15:57 +00:00
Donny/강동윤
af1d19554f
feat(dbg-swc): Add command to compare minifier (#4653) 2022-05-13 09:13:23 +00:00
SWC Bot
484dce661d chore: Publish crates 2022-05-13 08:52:09 +00:00
Hana
b6f904b8f0
feat(es): Add an option to omit columns from sourcemaps (#4646) 2022-05-13 08:49:31 +00:00
Donny/강동윤
0e631eeab9 chore: Publish v1.2.183 2022-05-13 15:35:07 +09:00
SWC Bot
0b06ab4022 chore: Publish crates 2022-05-13 06:34:22 +00:00
David Sherret
2745cb7949
fix(es/resolver): Ensure that a parameter type is resolved to parent (#4645) 2022-05-13 06:31:52 +00:00
SWC Bot
d9d3585732 chore: Publish crates 2022-05-13 06:07:50 +00:00
Donny/강동윤
b393773373
feat(debug): Inline dbg-swc (#4651) 2022-05-13 06:05:21 +00:00
SWC Bot
f0639c9de4 chore: Publish crates 2022-05-13 05:09:53 +00:00
Alexander Akait
af9c8c6b4c
fix(html): Fix parsing of template (#4647) 2022-05-13 05:07:24 +00:00
SWC Bot
3ac649138a chore: Publish crates 2022-05-13 04:48:12 +00:00
Alexander Akait
fa4a60a318
fix(html/codegen): Fix codegen (#4629) 2022-05-13 04:45:40 +00:00
Donny/강동윤
539fa4113e chore: Publish crates 2022-05-13 12:31:17 +09:00
SWC Bot
46c1add60e chore: Publish crates 2022-05-12 20:21:46 +00:00
Artur
f45dd72033
feat(es/lints): Implement no-compare-neg-zero rule (#4643) 2022-05-12 20:19:18 +00:00
SWC Bot
0b35b047bf chore: Publish crates 2022-05-12 19:59:27 +00:00
Alexander Akait
a19db2992b
fix(html/parser): Fix newlines (#4633) 2022-05-12 19:56:47 +00:00
SWC Bot
783917fd91 chore: Publish crates 2022-05-12 19:35:16 +00:00
Alexander Akait
c41aca6b24
feat(html/minifier): Compress application/ld+json (#4628) 2022-05-12 19:32:49 +00:00
SWC Bot
e21a40e55e chore: Publish crates 2022-05-12 10:53:44 +00:00
Donny/강동윤
84e4ca6c27
fix(css/parser): Remove a wrong assertion (#4641) 2022-05-12 19:48:51 +09:00
SWC Bot
073ca87012 chore: Publish crates 2022-05-12 09:23:46 +00:00
Donny/강동윤
9c190f0a8e
fix(es/minifier): Fix optimization of spread (#4639) 2022-05-12 09:20:44 +00:00
Donny/강동윤
79f87e03db
test(es/minifier): Execute more tests (#4636) 2022-05-12 16:28:52 +09:00
SWC Bot
cb5ca547aa chore: Publish crates 2022-05-12 15:14:28 +09:00
Donny/강동윤
56a227ad9d fix(es/minifier): Don't create direct eval (#4634)
- `expr_simplifier`: Preserve `this`.
 - `ExprReplacer`: Inject `0` after inlining eval.
 - `MultiReplacer`: Inject `0` after inlining eval.
2022-05-12 15:14:18 +09:00
SWC Bot
dca5bf8b2f chore: Publish crates 2022-05-12 05:50:05 +00:00
Alexander Akait
5f899a0348
refactor(html/parser): Improve parser a bit (#4627) 2022-05-12 05:45:11 +00:00
SWC Bot
67de03579f chore: Publish crates 2022-05-12 05:09:22 +00:00
Alexander Akait
b8fa3bc456
refactor(html/parser): Improve public API (#4626) 2022-05-12 05:07:07 +00:00
SWC Bot
c1e7dd7326 chore: Publish crates 2022-05-12 04:43:48 +00:00
Alexander Akait
5679b69600
feat(html/minifier): Improve minification of attributes (#4625) 2022-05-12 04:40:47 +00:00
SWC Bot
5a53bb771d chore: Publish crates 2022-05-12 04:18:10 +00:00
Donny/강동윤
20692cdff1
fix(es/modules): Fix jsc.paths (#4620) 2022-05-12 04:14:51 +00:00
SWC Bot
8fa7ce974e chore: Publish crates 2022-05-12 03:48:36 +00:00
Pig Fang
cac4f6e265
feat(html/parser): Add a method to get error message (#4623) 2022-05-12 03:45:56 +00:00
Alexander Akait
4e577d7f45
test(html/parser): Add dom visualizer for regular tests (#4622) 2022-05-12 02:58:51 +00:00
SWC Bot
97808349a2 chore: Publish crates 2022-05-11 16:17:07 +00:00
Donny/강동윤
67942d5731
feat(common): Reserve BytePos(0) for dummy spans (#4616) 2022-05-11 16:14:42 +00:00
Alexander Akait
a378e1e041
refactor(html/parser): Remove unused code (#4613) 2022-05-11 05:57:33 +00:00
Donny/강동윤
4b0df044bd chore: Publish v1.2.182 2022-05-11 14:37:30 +09:00
SWC Bot
d768200e10 chore: Publish crates 2022-05-11 05:36:57 +00:00
Donny/강동윤
3b2b8c4512
fix(es/config): Merge jsc.transform correctly (#4615) 2022-05-11 14:28:40 +09:00
SWC Bot
90569d4673 chore: Publish crates 2022-05-11 04:38:52 +00:00
Donny/강동윤
6a97c7bef8
fix(es/utils): Fix wrong apis (#4604)
# API Changes

## `swc_ecma_utils`

### Renames

 - `find_ids` => `find_pat_ids`
 - `prepend` => `prepend_stmt`
 - `as_bool` => `cast_to_bool`
 - `as_number` => `as_pure_number`
 - `as_string` => `cast_to_string`
 - (`as_pure_bool`, `cast_to_number` is not renamed)
 - `UsageFinder` => `IdentUsageFinder`.
 - `IdentFinder` => `IdentRefFinder`.

## Changes

 - Re-export of `HANDLER` from `swc_common::errors` is removed. Use `swc_common::error::HANDLER` instead.
 - Re-export of `Id` from `swc_ecma_ast` is removed. Use `swc_ecma_ast::Id` instead.
 - `ExprCtx` is used for apis related to `Expr`.
 - `preserve_effects` is now a method of `ExprCtx`. It was a top-level function.
 - `extract_side_effects_to` is now a method of `ExprCtx`. It was a top-level function.
 - `IdentUsageFinder` (previously `UsageFinder`) now takes `Id` instead of `Ident`.
 - `IdentRefFinder` (previously `IdentFinder`) now takes `Id` instead of `Ident`.
 - `ExprExt::is_ident_ref_to` is removed.
 - `Expr::is_global_ref_to` is added.
 - `:🆔:id` is removed. Use `Ident::to_id()` instead.
2022-05-11 04:36:22 +00:00
SWC Bot
74ffa5ab9c chore: Publish crates 2022-05-11 03:59:37 +00:00
Alexander Akait
7c6627fc21
refactor(html): Refactor parser and codegen (#4611) 2022-05-11 03:55:46 +00:00
SWC Bot
7f67b0e6ac chore: Publish crates 2022-05-11 03:35:17 +00:00
Alexander Akait
7166dbf5a6
fix(html/parser): Fix bugs (#4592) 2022-05-11 03:31:49 +00:00
Donny/강동윤
2c861bd9e5
feat(es/ast): Improve Id APIs (#4614)
# API Changes

 - `Ident` now has `to_id()`. This method is added to allow removing an import.
2022-05-11 12:02:14 +09:00
SWC Bot
9a36b216cc chore: Publish crates 2022-05-11 03:01:34 +00:00
Pig Fang
04dd3ddc5d
feat(css/parser): Add a method to get error message (#4588) 2022-05-11 02:58:20 +00:00
SWC Bot
ad9daae200 chore: Publish crates 2022-05-10 10:43:10 +00:00
Artur
e65bf3d025
feat(es/lints): Implement prefer-const rule without options (#4584) 2022-05-10 10:40:46 +00:00