Commit Graph

3129 Commits

Author SHA1 Message Date
Austaras
3590ea2277
fix(es): Merge jsc.loose and jsc.assumptions (#3990) 2022-03-12 16:14:03 +00:00
SWC Bot
2a6106f0b7 chore: Publish crates 2022-03-12 15:38:49 +00:00
magic-akari
04db7e2a9b
perf(es/minifier): Refactor base54 (#3989) 2022-03-12 15:36:42 +00:00
Donny/강동윤
3054409214 chore: Publish crates 2022-03-12 20:47:59 +09:00
Donny/강동윤
bd0fcb9ea4 chore(es/preset-env): Track .json files to make cargo happy 2022-03-12 20:47:29 +09:00
Donny/강동윤
743a5da1e5 chore(ci): Invoke yarn before publishing 2022-03-12 20:16:51 +09:00
Donny/강동윤
f5e8cc2d09 chore: Publish crates 2022-03-12 20:13:53 +09:00
SWC Bot
ad42c60e05 chore: Publish crates 2022-03-12 11:08:43 +00:00
Donny/강동윤
1beecceead
perf(es/minifier): Merge hashmap for scoping before checking (#3988)
Currently, we check for child scopes by doing a recursive call, like 2ad0d801a2/crates/swc_ecma_minifier/src/pass/mangle_names/analyzer/scope.rs (L112-L114)

But this is slow because it results in an enormous amount of calls.

We can optimize this by merging information of child scopes beforehand.
2022-03-12 20:06:59 +09:00
Donny/강동윤
2ad0d801a2 chore: Publish v1.2.154 2022-03-12 19:18:34 +09:00
SWC Bot
11c26d8d13 chore: Publish crates 2022-03-12 09:35:26 +00:00
Donny/강동윤
073d847a33
test(es): Add tests for fixed issues (#3987) 2022-03-12 09:33:32 +00:00
Donny/강동윤
9e4f4e92f7 chore: Publish v1.2.154 2022-03-12 17:40:56 +09:00
SWC Bot
8f1d6302d1 chore: Publish crates 2022-03-12 07:52:26 +00:00
Donny/강동윤
83722df21a
chore(es/preset-env): Use js script for copying files (#3986)
Description:
 - We don't store `.json` from dependencies in our repo anymore.
2022-03-12 07:45:25 +00:00
SWC Bot
7e96a8a9d7 chore: Publish crates 2022-03-12 07:17:08 +00:00
Donny/강동윤
db60291164
perf(common): Use fxhash everywhere (#3985)
Description:
 - To avoid a breaking change, I created a cargo feature that can be used to change hasher.
 - This leads to about 8% perf improvements on m1 max macbook pro 64gb
2022-03-12 07:15:12 +00:00
SWC Bot
fb421b8cc3 chore: Publish crates 2022-03-12 06:47:29 +00:00
Donny/강동윤
67e615421f
perf(es/minifier): Use fxhash for integers (#3984)
Description:
 - `Id` is treated as integer, as `JsWord` and `SyntaxContext` are both integer.
2022-03-12 06:45:35 +00:00
SWC Bot
c6ddb5fcf5 chore: Publish crates 2022-03-12 06:17:50 +00:00
Donny/강동윤
107c91dd20
perf(es/minifier): Make mangler faster by merging hash sets into one (#3983) 2022-03-12 06:16:02 +00:00
SWC Bot
77eb149f87 chore: Publish crates 2022-03-12 05:33:55 +00:00
Donny/강동윤
48f2fd8e1b
fix(es): Change error message as it can be misleading (#3982) 2022-03-12 14:32:00 +09:00
SWC Bot
38f009d2cf chore: Publish crates 2022-03-12 03:04:21 +00:00
Donny/강동윤
f28134fe77
feat(es/lints): Mark catch params as binding patterns while checking duplicates (#3981) 2022-03-12 03:02:22 +00:00
SWC Bot
28bc1e23a7 chore: Publish crates 2022-03-12 01:54:45 +00:00
OJ Kwon
485dc54d29
chore(ci): Skip unnecessary package for the benchmark (#3980) 2022-03-12 01:52:53 +00:00
SWC Bot
639d79d2bd chore: Publish crates 2022-03-12 01:28:25 +00:00
Alexander Akait
4a9a5ffa4b
feat(css/prefixer): Prefix more properties (#3976) 2022-03-12 01:26:41 +00:00
Donny/강동윤
ddfa490899 chore: Publish crates 2022-03-12 10:00:23 +09:00
SWC Bot
1ae67affe3 chore: Publish crates 2022-03-11 16:56:55 +00:00
Alexander Akait
516dbc65dc
feat(css/codegen): Fix source maps and ast defs (#3974) 2022-03-11 16:54:33 +00:00
SWC Bot
df7ad95e88 chore: Publish crates 2022-03-11 16:31:05 +00:00
Donny/강동윤
6a6c32203b
chore(es/parser): Add some inline attributes (#3969) 2022-03-11 16:29:05 +00:00
SWC Bot
37c16b0c70 chore: Publish crates 2022-03-11 16:04:13 +00:00
Austaras
502f934ce5
fix(es/preset-env): Move out finished proposals (#3970) 2022-03-11 16:02:05 +00:00
SWC Bot
366e4d3362 chore: Publish crates 2022-03-11 15:38:18 +00:00
Donny/강동윤
858372ffad
fix(es/preset-env): Publish builtin.json (#3973) 2022-03-11 15:36:02 +00:00
SWC Bot
2f874d959a chore: Publish crates 2022-03-11 14:45:08 +00:00
Donny/강동윤
7ebfcfa70f
fix(es/preset-env): Fix compilation issue (#3972) 2022-03-11 14:43:17 +00:00
SWC Bot
d1ac902196 chore: Publish crates 2022-03-11 14:02:55 +00:00
LongYinan
1206c84e19
feat(*): Update dependencies (#3964) 2022-03-11 23:00:55 +09:00
SWC Bot
4c29b26f3c chore: Publish crates 2022-03-11 12:51:44 +00:00
Austaras
487273fc5b
fix(preset-env): Use core-js-compat and @babel/compat-data directly (#3968) 2022-03-11 12:49:53 +00:00
Donny/강동윤
95ab49737c chore: Publish v1.2.153 2022-03-11 18:13:30 +09:00
SWC Bot
6e7fe34557 chore: Publish crates 2022-03-11 09:12:58 +00:00
Donny/강동윤
76e646804a
fix(es/parser): Parse if-else chain iteratively (#3961) 2022-03-11 09:10:54 +00:00
SWC Bot
48cdc13183 chore: Publish crates 2022-03-11 17:48:41 +09:00
SWC Bot
4006794d78 chore: Publish crates 2022-03-11 08:44:23 +00:00
Donny/강동윤
c6b5371c51
fix(es/lints): Don't visit types while collecting const (#3967) 2022-03-11 17:41:28 +09:00