Donny/강동윤
7599fe7431
fix(es/parser): Enable static blocks by default ( #4334 )
2022-04-15 07:31:41 +00:00
SWC Bot
1a752de78e
chore: Publish crates
2022-04-14 06:03:03 +00:00
Donny/강동윤
8886a4b572
fix(es/minifier): Respect dead_code
( #4328 )
2022-04-14 06:00:43 +00:00
SWC Bot
62b021b5b2
chore: Publish crates
2022-04-14 04:13:17 +00:00
Alexander Akait
405e5ed0b3
fix(css/prefixer): Fix more bugs ( #4330 )
2022-04-14 13:10:30 +09:00
SWC Bot
845312ee45
chore: Publish crates
2022-04-14 00:53:25 +00:00
Pig Fang
37aec5b199
refactor(es/parser): Simplify logic ( #4329 )
2022-04-14 09:50:54 +09:00
SWC Bot
ed2674f106
chore: Publish crates
2022-04-13 19:53:48 +00:00
Julien Karst
780de7095e
fix(es/loader): Fix traversal of node modules resolver ( #4327 )
2022-04-13 19:51:17 +00:00
SWC Bot
bef183e74a
chore: Publish crates
2022-04-13 19:18:56 +00:00
Pig Fang
1c3d1af01c
feat(es/parser): Support extends
clause to infer
type ( #4326 )
2022-04-13 19:16:15 +00:00
SWC Bot
39dc394933
chore: Publish crates
2022-04-13 14:26:17 +00:00
Donny/강동윤
2002554fa2
refactor(es/minifier): Clean up logging ( #4322 )
2022-04-13 23:23:07 +09:00
SWC Bot
279145022d
chore: Publish crates
2022-04-13 10:19:53 +00:00
Donny/강동윤
0245e26af5
fix(es/codegen): Fix overflow of numeric literals ( #4321 )
2022-04-13 10:16:51 +00:00
SWC Bot
b2e4be5c1e
chore: Publish crates
2022-04-13 08:33:46 +00:00
Alexander Akait
ac4f14ad7b
fix(css/prefixer): Handle at-rules and don't generate unnecessary prefixes ( #4318 )
2022-04-13 08:28:09 +00:00
SWC Bot
8959774a78
chore: Publish crates
2022-04-13 07:05:03 +00:00
Alexander Akait
81370d16cb
fix(css/parser): Parse legacy calc
s ( #4320 )
2022-04-13 07:02:31 +00:00
SWC Bot
876baeb77a
chore: Publish crates
2022-04-12 13:38:41 +00:00
Alexander Akait
65b18ee602
feat(css/minifier): Compress colors ( #4308 )
2022-04-12 13:35:57 +00:00
SWC Bot
591b98df66
chore: Publish crates
2022-04-12 22:11:46 +09:00
Donny/강동윤
6c9882ec68
fix(es/compat): Fix renaming bug of block_scoping
( #4310 )
2022-04-12 22:11:34 +09:00
SWC Bot
06c829da71
chore: Publish crates
2022-04-12 03:42:51 +00:00
Donny/강동윤
74a5087989
feat(es/minifier): Enable dead_code
by default ( #4309 )
2022-04-12 03:40:10 +00:00
SWC Bot
e133071c41
chore: Publish crates
2022-04-12 02:15:01 +00:00
Donny/강동윤
7e8f613272
feat(es/minifier): Enable conditionals
by default ( #4301 )
2022-04-12 02:12:10 +00:00
SWC Bot
fa880634bd
chore: Publish crates
2022-04-11 20:05:28 +00:00
magic-akari
d0de5a63a0
feat(es): Support typeof
with private fields ( #4302 )
2022-04-11 20:02:51 +00:00
SWC Bot
5eed25f552
chore: Publish crates
2022-04-11 19:14:46 +00:00
Alexander Akait
690ce2628c
fix(css/prefixer): Don't prefix if it's already prefixed ( #4307 )
2022-04-11 19:12:12 +00:00
SWC Bot
4a097adbf7
chore: Publish crates
2022-04-11 18:48:43 +00:00
那里好脏不可以
37a8c90750
chore(*): Typo + fomatting ( #4304 )
2022-04-11 18:45:58 +00:00
Austaras
df0d572b4f
chore(es/minifier): Update terser test references ( #4297 )
2022-04-10 06:50:52 +00:00
SWC Bot
d1a5115c6e
chore: Publish crates
2022-04-09 09:18:07 +00:00
Donny/강동윤
b990b19ed1
fix(es/minifier): Fix inlining of uninitialized variables ( #4292 )
2022-04-09 09:15:40 +00:00
SWC Bot
1fb456c630
chore: Publish crates
2022-04-09 08:16:20 +00:00
Austaras
e4a565c2d4
fix(es/lints): Check parameters in the duplicate binding rule ( #4288 )
2022-04-09 08:14:01 +00:00
SWC Bot
ea3d6c1a58
chore: Publish crates
2022-04-09 07:50:29 +00:00
OJ Kwon
cf7ca5076a
refactor(plugin/api): Expand the proxy crate ( #4290 )
2022-04-09 07:47:43 +00:00
Donny/강동윤
6fe4ee79be
chore: Publish crates
2022-04-09 16:18:24 +09:00
SWC Bot
67f1944441
chore: Publish crates
2022-04-09 07:14:42 +00:00
OJ Kwon
281db2cc4f
feat(plugin): Make more types serializable ( #4289 )
2022-04-09 16:12:14 +09:00
Donny/강동윤
dc7fc74172
chore: Publish v1.2.165
2022-04-09 16:08:03 +09:00
SWC Bot
431f70d563
chore: Publish crates
2022-04-08 18:11:07 +00:00
Donny/강동윤
4868c73d5b
fix(es/optimization): Don't create invalid sequence expressions ( #4285 )
2022-04-08 18:08:31 +00:00
SWC Bot
6c50ae6b0d
chore: Publish crates
2022-04-08 09:22:45 +00:00
Alexander Akait
ee108af3d0
feat(html): Add raw fields ( #4281 )
2022-04-08 09:19:58 +00:00
SWC Bot
974919eafa
chore: Publish crates
2022-04-08 08:59:03 +00:00
Donny/강동윤
c961371c31
fix(es/minifier): Fix handling of eval
( #4273 )
2022-04-08 08:56:28 +00:00
SWC Bot
21d3fea824
chore: Publish crates
2022-04-08 08:34:58 +00:00
OJ Kwon
3c4e5204ec
feat(plugin): Implement Copy
and Clone
for the comment proxy ( #4280 )
2022-04-08 08:32:05 +00:00
SWC Bot
aabb48d9b2
chore: Publish crates
2022-04-08 08:11:00 +00:00
OJ Kwon
fc3a2d0cf9
feat(plugin/runner): Allow fs access from wasi plugin ( #4279 )
2022-04-08 08:03:03 +00:00
SWC Bot
e0556cb136
chore: Publish crates
2022-04-08 06:56:04 +00:00
Alexander Akait
7f38e06e02
fix(css/prefixer): FIx a bug related to writing-mode
( #4278 )
2022-04-08 06:53:38 +00:00
SWC Bot
1211a34618
chore: Publish crates
2022-04-08 06:31:07 +00:00
Austaras
720244fff9
fix(es/module): Support top-level await in dynamic imports ( #4277 )
2022-04-08 15:28:10 +09:00
SWC Bot
9feabcd145
chore: Publish crates
2022-04-07 08:11:17 +00:00
Donny/강동윤
434dcf4af7
refactor(es/minifier): Merge code for multi-replacer ( #4269 )
2022-04-07 08:08:42 +00:00
SWC Bot
67c8c6debd
chore: Publish crates
2022-04-07 07:30:41 +00:00
OJ Kwon
fad652f879
chore(plugin): Align version of swc_common
to include dummy comment api ( #4270 )
2022-04-07 07:21:37 +00:00
Donny/강동윤
c45d9c5697
chore: Publish v1.2.164
2022-04-07 14:56:59 +09:00
SWC Bot
4c89ddd020
chore: Publish crates
2022-04-07 05:39:57 +00:00
OJ Kwon
b15e984317
feat(plugin): Implement proxy for dummy_with_cmt
( #4268 )
2022-04-07 05:37:12 +00:00
SWC Bot
92186d0407
chore: Publish crates
2022-04-07 05:15:21 +00:00
Alexander Akait
105a0cccf7
fix(html/parser): Fix bugs ( #4265 )
2022-04-07 14:12:54 +09:00
SWC Bot
ddbf5a3d43
chore: Publish crates
2022-04-07 04:09:36 +00:00
OJ Kwon
8706c17c4f
refactor(plugin): Consolidate exported namespaces ( #4263 )
2022-04-07 04:07:10 +00:00
SWC Bot
55418fb4fe
chore: Publish crates
2022-04-07 03:45:35 +00:00
Hannes Bornö
674275c824
feat(es/parser): Report more errors ( #4244 )
2022-04-07 03:43:10 +00:00
SWC Bot
ed2815baec
chore: Publish crates
2022-04-07 03:18:28 +00:00
William Tetlow
b89937c3c0
fix(es/parser): Adjust context in a function block ( #4264 )
2022-04-07 12:15:59 +09:00
SWC Bot
91e889f531
chore: Publish crates
2022-04-06 11:10:53 +00:00
Donny/강동윤
1f5cac4d41
feat(es/minifier): Implement more rules for hoist_props
( #4262 )
2022-04-06 11:01:45 +00:00
SWC Bot
35ad940ca5
chore: Publish crates
2022-04-06 06:31:19 +00:00
Donny/강동윤
ab1f440103
feat(es/minifier): Exclude local bindings from aliases ( #4261 )
...
- We now exclude bindings created by the initializer while analyzing aliases.
2022-04-06 06:28:49 +00:00
SWC Bot
3ed18eb480
chore: Publish crates
2022-04-06 06:01:48 +00:00
Alexander Akait
3f6037b467
fix(html/parser): Support cdata ( #4259 )
2022-04-06 14:59:10 +09:00
SWC Bot
0505a09ecd
chore: Publish crates
2022-04-06 05:33:56 +00:00
Alexander Akait
8640c8bd43
feat(html): Support boolean attributes ( #4258 )
2022-04-06 05:31:27 +00:00
SWC Bot
e91be102d7
chore: Publish crates
2022-04-06 05:10:26 +00:00
Alexander Akait
8b6647cf85
feat(css/parser): Improve error recovery for unknown at-rules ( #4257 )
2022-04-06 05:07:48 +00:00
SWC Bot
b72ec7b53b
chore: Publish crates
2022-04-06 04:46:07 +00:00
Victor Sumner
7bc04a6791
feat(plugin/api): Expose swc_ecma_utils
( #4256 )
2022-04-06 04:43:32 +00:00
Alexander Akait
1f0039f2c3
test(es/parser): Add a test for a fixed issue ( #4255 )
2022-04-06 00:21:13 +09:00
SWC Bot
5eb3d8315a
chore: Publish crates
2022-04-05 12:49:22 +00:00
Alexander Akait
f39d3aca4d
feat(es/ast): Add raw
to Num
( #4245 )
2022-04-05 12:46:35 +00:00
SWC Bot
8c4ad410f8
chore: Publish crates
2022-04-05 11:49:50 +00:00
Donny/강동윤
ccd3188c8b
fix(es/codegen): Handle comments on the argument of throw
( #4254 )
2022-04-05 11:47:18 +00:00
SWC Bot
bef40f8443
chore: Publish crates
2022-04-05 09:14:49 +00:00
Donny/강동윤
8cd903b3b0
fix(es/codegen): Commit ;
before a template literal ( #4252 )
2022-04-05 09:12:23 +00:00
Donny/강동윤
c32f42b374
test(es): Organize tests ( #4251 )
2022-04-05 08:21:19 +00:00
SWC Bot
9843ee42df
chore: Publish crates
2022-04-05 07:37:06 +00:00
Donny/강동윤
350a19587e
fix(es/minifier): Fix infinite loops ( #4250 )
...
- We now don't mark changes due to `negate_cost` as a change.
2022-04-05 07:29:10 +00:00
SWC Bot
ea871e2879
chore: Publish crates
2022-04-05 06:27:53 +00:00
Donny/강동윤
4701da576f
feat(es/minifier): Improve inliner and evaluator ( #4216 )
2022-04-05 06:25:23 +00:00
Donny/강동윤
990b320394
chore: Publish crates
2022-04-05 14:44:51 +09:00
OJ Kwon
4093814895
chore(build): Dedup swc_common
( #4247 )
2022-04-05 14:28:07 +09:00
那里好脏不可以
06020bb76d
chore(es/preset-env): Typo ( #4243 )
2022-04-04 15:15:11 +00:00
Donny/강동윤
1f466e1d2f
chore(ci): Fix benchmark action ( #4242 )
2022-04-04 20:12:03 +09:00
SWC Bot
fd7cbfb99d
chore: Publish crates
2022-04-04 04:39:08 +00:00
Xiaotao
8008b79f8c
feat(es): Support jsonc for .swcrc
( #4236 )
2022-04-04 04:36:47 +00:00
Alexander Akait
3e7872c8de
feat(html): Initialize ( #4240 )
2022-04-04 04:12:45 +00:00
SWC Bot
b973d35282
chore: Publish crates
2022-04-04 03:48:39 +00:00
magic-akari
6a51d0471a
fix(es/minifier): Handle empty RegExp ( #4235 )
2022-04-04 03:46:07 +00:00
SWC Bot
abc412cdbd
chore: Publish crates
2022-04-04 03:25:37 +00:00
Austaras
b1645f606d
fix(es/optimizer/simplifier): Collect idents in init first ( #4239 )
2022-04-04 12:23:15 +09:00
Donny/강동윤
06d0891e7c
chore(bench): Migrate to criterion ( #4237 )
2022-04-04 00:56:29 +09:00
SWC Bot
14ab63b26e
chore: Publish crates
2022-04-03 14:12:13 +00:00
magic-akari
6d380ea6fa
fix(es/parser): Support error reporting for TS1274 ( #4232 )
2022-04-03 23:09:36 +09:00
SWC Bot
6e4dc582ba
chore: Publish crates
2022-04-03 13:15:32 +00:00
Donny/강동윤
fe358ad0b9
feat(es/minifier): Improve sequential inlining ( #4231 )
2022-04-03 13:13:15 +00:00
SWC Bot
aac4e34d91
chore: Publish crates
2022-04-03 11:49:06 +00:00
Donny/강동윤
55b98fc874
fix(es/minifier): Remap variables on IIFE evaluation ( #4230 )
...
- We now check if there's pending inlining before remapping variables.
- We now use ad-hoc type for remapping.
- We now inline before remapping to prevent interference with inlining.
2022-04-03 11:39:05 +00:00
Donny/강동윤
012d3a67fa
chore: Publish v1.2.163
2022-04-03 16:06:38 +09:00
SWC Bot
833b045102
chore: Publish crates
2022-04-03 06:25:15 +00:00
OJ Kwon
6ea66cf001
feat(plugin): Implement plugin api for comments ( #4229 )
2022-04-03 15:22:36 +09:00
Donny/강동윤
f39895e563
chore: Publish crates
2022-04-02 16:25:18 +09:00
Donny/강동윤
7eea95be7a
fix(es/preset-env): Change order of passes
2022-04-02 06:57:17 +00:00
Donny/강동윤
bbbaf15bba
test(es): Add a test to ensure that an issue is not a bug of swc ( #4227 )
2022-04-02 06:29:09 +00:00
SWC Bot
3337777f8c
chore: Publish crates
2022-04-02 06:06:39 +00:00
Alexander Akait
e91f271873
feat(es/ast): Add raw
to BigInt
( #4218 )
2022-04-02 06:04:14 +00:00
SWC Bot
257f0dbb7f
chore: Publish crates
2022-04-02 05:37:49 +00:00
Alexander Akait
def2826029
feat(css/ast): Derive more traits ( #4220 )
2022-04-02 14:35:05 +09:00
SWC Bot
0bac3d08f0
chore: Publish crates
2022-04-02 05:34:19 +00:00
Victor Sumner
69cb512e57
fix(cli): Update plugin template ( #4222 )
2022-04-02 05:31:57 +00:00
Donny/강동윤
ac2357ebd9
chore: Publish crates
2022-04-02 01:59:34 +09:00
SWC Bot
77abfef314
chore: Publish crates
2022-04-01 11:55:47 +00:00
Alexander Akait
6696a93b5c
refactor(css/ast): Union all at-rules to one at-rule in AST ( #4189 )
2022-04-01 20:53:23 +09:00
SWC Bot
d2f44095dc
chore: Publish crates
2022-04-01 11:14:19 +00:00
Donny/강동윤
688f653323
perf(es/minifier): Add fast-path for sequences pass ( #4217 )
2022-04-01 11:06:35 +00:00
SWC Bot
4679f65782
chore: Publish crates
2022-04-01 06:54:28 +00:00
Alexander Akait
75b0ed55f6
fix(css/prefixer): Fix flex box ( #4212 )
2022-04-01 06:52:03 +00:00
SWC Bot
ee9e661e03
chore: Publish crates
2022-04-01 06:22:48 +00:00
Donny/강동윤
164556290b
perf(es/parser): Improve performance by using #[cold]
( #4215 )
2022-04-01 06:20:29 +00:00
SWC Bot
1068561800
chore: Publish crates
2022-04-01 04:29:08 +00:00
magic-akari
b793aa0200
feat(es/compat): Support more regex expressions ( #4205 )
2022-04-01 04:26:30 +00:00
Donny/강동윤
a05a0d58a6
chore: Publish v1.2.162
2022-03-31 23:12:53 +09:00
Donny/강동윤
60c9ddf5fd
chore: Publish crates
2022-03-31 23:08:24 +09:00
Donny/강동윤
61366c85b3
chore: Publish crates
2022-03-31 23:06:10 +09:00
SWC Bot
d19c8a8aa3
chore: Publish crates
2022-03-31 13:03:06 +00:00
magic-akari
6a27a0ce88
fix(es/compat): Hoist env in function params ( #4210 )
2022-03-31 13:00:19 +00:00
Donny/강동윤
3b1da220e2
refactor(*): Remove fastmem
( #4211 )
2022-03-31 11:40:06 +00:00
SWC Bot
30742ae6e7
chore: Publish crates
2022-03-31 09:14:23 +00:00
Donny/강동윤
10718547e0
fix(es/minifier): Fix evaluation of IIFEs ( #4207 )
...
- We now remap parameters using a new syntax context. This is required because we may copy functions, and it can result in duplicated variables with respect to the span hygiene.
- We now visit the sequence expression generated by inlining. This is to improve performance in some cases.
- We now remove variables from variable statements if it's identical to a parameter declared in the function.
- IIFE evaluation is now aware of `this` being different for member expressions.
- We now have more logic for detecting simple functions.
2022-03-31 09:11:54 +00:00
SWC Bot
79866cf0d2
chore: Publish crates
2022-03-31 08:47:32 +00:00
OJ Kwon
536a190dc9
feat(plugin): Implement PoC of comments api ( #4206 )
2022-03-31 08:45:08 +00:00
OJ Kwon
eecda21d9a
fix(node-swc): Initialize custom trace subscriber only once ( #4209 )
2022-03-31 07:11:31 +00:00
SWC Bot
24ce355d77
chore: Publish crates
2022-03-31 00:56:42 +00:00
overlookmotel
073751f70d
fix(es/optimization): Support jsx in dce
( #4203 )
2022-03-31 00:54:20 +00:00
SWC Bot
30cde5b0eb
chore: Publish crates
2022-03-30 23:37:49 +00:00
Donny/강동윤
11fe5fabd8
feat(es/minifier): Evaluate more iifes ( #4200 )
2022-03-30 23:35:30 +00:00
SWC Bot
c6a583741c
chore: Publish crates
2022-03-30 22:53:40 +00:00
SWC Bot
19bc43f3ed
chore: Publish crates
2022-03-30 22:03:54 +00:00
William Tetlow
99a0d34a1e
fix(es/parser): Fix parsing of an arrow and a conditional expression ( #4199 )
2022-03-30 22:01:31 +00:00
SWC Bot
cfed024514
chore: Publish crates
2022-03-30 21:19:05 +00:00
Austaras
c946236fcc
fix(es/compat): Fix label handling of block_scoping
( #4198 )
2022-03-30 21:16:34 +00:00
SWC Bot
9a3591a424
chore: Publish crates
2022-03-30 20:34:01 +00:00
David Sherret
cffe5ca58e
feat(es/parser): Allow parsing files with missing close braces ( #4187 )
2022-03-30 20:31:24 +00:00
SWC Bot
b67c104877
chore: Publish crates
2022-03-30 12:07:14 +00:00
Austaras
3426dda4f7
fix(es/compat): Handle new.target
in getter/setter properties ( #4194 )
2022-03-30 12:04:27 +00:00
SWC Bot
40b3381ae8
chore: Publish crates
2022-03-30 10:32:51 +00:00
magic-akari
4f5c5cf842
fix(es/compat): Handle spreads of string literials ( #4191 )
2022-03-30 19:30:06 +09:00
SWC Bot
a320f4ddfd
chore: Publish crates
2022-03-30 06:10:09 +00:00
David Sherret
1759567fc4
chore(es/parser): Add span tests back ( #4186 )
2022-03-30 06:07:40 +00:00
SWC Bot
1ac4e54ee4
chore: Publish crates
2022-03-29 10:16:17 +00:00
Donny/강동윤
9a9a4f37d8
fix(es/minifier): Fix react-ace
( #4183 )
2022-03-29 10:13:30 +00:00
SWC Bot
9b63369d1e
chore: Publish crates
2022-03-29 06:20:24 +00:00
OJ Kwon
8ca4e67451
refactor(cli): Alias plugin build with wasm target ( #4181 )
2022-03-29 15:17:40 +09:00
SWC Bot
c0abdb394a
chore: Publish crates
2022-03-29 04:27:33 +00:00
Donny/강동윤
6d3ea17aa6
feat(es/minifier): Optimize switches more correctly ( #4180 )
2022-03-29 04:25:15 +00:00
SWC Bot
783904917d
chore: Publish crates
2022-03-29 01:48:37 +00:00
Donny/강동윤
a6f6799811
feat(es/minifier): Evaluate trivial expressions ( #4179 )
2022-03-29 01:46:09 +00:00
Donny/강동윤
3d62f42020
chore: Publish crates
2022-03-29 07:07:48 +09:00
Donny/강동윤
e763af77dd
chore: Publish v1.2.161
2022-03-28 21:26:46 +09:00
SWC Bot
6125de9808
chore: Publish crates
2022-03-28 12:20:51 +00:00
Alexander Akait
fcf67c4570
fix(es): Consume surrogate pairs ( #4115 )
2022-03-28 12:18:06 +00:00
SWC Bot
13e7b4f92a
chore: Publish crates
2022-03-28 09:16:49 +00:00
Donny/강동윤
6f25e5774b
feat(es/minifier): Implement more rules for dropping unused assignemnts ( #4171 )
2022-03-28 09:14:16 +00:00
SWC Bot
e7089d8b3e
chore: Publish crates
2022-03-28 08:52:53 +00:00
Artur
a88d56ee08
feat(es/lints): Implement no-obj-calls
rule ( #4168 )
2022-03-28 08:50:32 +00:00
SWC Bot
4bb22f9b5c
chore: Publish crates
2022-03-28 08:30:00 +00:00
Artur
2a9cb2d12a
refactor(es/lints): Use util for parens ( #4167 )
2022-03-28 08:20:46 +00:00
SWC Bot
589ff584e7
chore: Publish crates
2022-03-28 06:51:53 +00:00
OJ Kwon
b473414b3c
chore(deps): Update string-cache
( #4169 )
2022-03-28 15:49:30 +09:00
SWC Bot
4cdf4b96e3
chore: Publish crates
2022-03-27 05:34:40 +00:00
RiESAEX
ea0de90137
fix(es/codegen): Emit sourcemap of key-value properties correctly ( #4166 )
2022-03-27 14:26:53 +09:00
SWC Bot
3761ba4c98
chore: Publish crates
2022-03-26 06:52:11 +00:00
Artur
10851ece98
feat(es/lints): Implement symbol-description
rule ( #4161 )
2022-03-26 06:49:57 +00:00
SWC Bot
6debb423d5
chore: Publish crates
2022-03-26 06:28:01 +00:00
magic-akari
fce554cfb0
fix(es/lints): Ignore type-only imports while checking duplicates ( #4163 )
2022-03-26 15:25:17 +09:00
Donny/강동윤
32c2de1181
chore: Publish crates
2022-03-25 21:15:57 +09:00
SWC Bot
1a3ed8e625
chore: Publish crates
2022-03-25 12:10:43 +00:00
Donny/강동윤
b37dafbd27
feat(es/minifier): Implement rules for optimizing loops ( #4157 )
2022-03-25 12:08:14 +00:00
SWC Bot
7e9118f6b6
chore: Publish crates
2022-03-25 11:18:40 +00:00
Donny/강동윤
5de31416be
feat(es/plugin): Make quote
optional ( #4160 )
2022-03-25 11:16:06 +00:00
Donny/강동윤
78175473fa
refactor(css/prefixer): Rename crate ( #4159 )
2022-03-25 19:46:45 +09:00
SWC Bot
38d91471ab
chore: Publish crates
2022-03-25 07:07:48 +00:00
OJ Kwon
161353cf25
feat(plugin/runner): Implement initial loading for wasm32 ( #4151 )
2022-03-25 07:05:26 +00:00
Donny/강동윤
97dfcb9ccb
chore(es/minifier): Add logging ( #4156 )
2022-03-25 06:44:07 +00:00
Alexander Akait
364ebd951a
feat(css/minifier): Compress more properties ( #4155 )
2022-03-25 06:20:39 +00:00
SWC Bot
e23066487e
chore: Publish crates
2022-03-25 05:59:35 +00:00
Alexander Akait
46c35dab25
feat(css/prefixer): Prefix more properties ( #4153 )
2022-03-25 05:57:04 +00:00
SWC Bot
973890bc52
chore: Publish crates
2022-03-25 05:08:50 +00:00
RiESAEX
7a1dcb1b93
fix(es): Make ErrorConfig.filename
default to true ( #4150 )
2022-03-25 05:06:15 +00:00
SWC Bot
d8abd9d2aa
chore: Publish crates
2022-03-24 17:23:24 +00:00
Artur
7a06c5b3d8
feat(es/lints): Remove source map accesses ( #4147 )
2022-03-24 17:07:18 +00:00
SWC Bot
d4b6b53641
chore: Publish crates
2022-03-24 11:18:13 +00:00
Hannes Bornö
cd7112b18b
feat(es/parser): Report more errors for invalid patterns ( #4145 )
2022-03-24 11:15:28 +00:00
SWC Bot
9431eae9f4
chore: Publish crates
2022-03-24 10:30:10 +00:00
Artur
47712de0da
feat(es/lints): Implement no-param-reassign
rule ( #4134 )
2022-03-24 10:27:26 +00:00
SWC Bot
a293adca0a
chore: Publish crates
2022-03-24 04:23:15 +00:00
magic-akari
f5ce79a72c
fix(es/parser): Fix logic for consuming ts modifiers ( #4137 )
2022-03-24 04:20:53 +00:00
Donny/강동윤
e6088408bf
chore: Publish crates
2022-03-24 12:05:47 +09:00
SWC Bot
06ce880c53
chore: Publish crates
2022-03-24 02:17:28 +00:00
Donny/강동윤
0f92eda0c7
feat(es/lints): Improve error messages ( #4142 )
2022-03-24 02:15:03 +00:00
SWC Bot
4e07a29112
chore: Publish crates
2022-03-24 00:51:52 +00:00
Donny/강동윤
ee5c48c935
feat(es/minifier): Implement more rules for optimizing for-if-break ( #4140 )
2022-03-24 00:49:32 +00:00
SWC Bot
3c4c3a6087
chore: Publish crates
2022-03-23 22:58:33 +00:00
Donny/강동윤
1d3763d96c
feat(es/minifier): Implement some unsafe evaluation rules ( #4133 )
2022-03-23 22:56:13 +00:00
SWC Bot
53f4271ab0
chore: Publish crates
2022-03-23 22:34:05 +00:00
William Tetlow
ab4ea9f0cb
fix(es/parser): Allow arrows without parenthesized param in typescript ( #4138 )
2022-03-23 22:31:19 +00:00
SWC Bot
cff12e53ce
chore: Publish crates
2022-03-23 22:09:56 +00:00
Artur
d8a988ef3d
feat(es/lints): Use Str.raw
instead of source map ( #4139 )
2022-03-23 22:07:16 +00:00
SWC Bot
dbe21cab68
chore: Publish crates
2022-03-23 21:41:10 +00:00
Alexander Akait
48f3dc8cc4
feat(es/codegen): Compress \t
in string literals more ( #4131 )
2022-03-23 21:37:03 +00:00
SWC Bot
b5b803662b
chore: Publish crates
2022-03-23 21:16:23 +00:00
Alexander Akait
6b6664a92d
feat(css/minifier): Remove @charset
at-rule if possible ( #4135 )
2022-03-23 21:13:52 +00:00
SWC Bot
35dcd62a3a
chore: Publish crates
2022-03-23 15:01:11 +00:00
Alexander Akait
93866d0be5
feat(css/minifier): Compress more properties ( #4130 )
2022-03-23 14:58:47 +00:00
SWC Bot
7053d6769a
chore: Publish crates
2022-03-23 14:39:11 +00:00
magic-akari
bf1924d1a8
feat(es/typescript): Support optional variance annotations ( #4008 )
2022-03-23 14:36:37 +00:00
SWC Bot
3e32fdcdd2
chore: Publish crates
2022-03-23 12:42:30 +00:00
Alexander Akait
f5a5217506
fix(es/codegen): Fix codegen of template literals ( #4124 )
2022-03-23 12:39:47 +00:00
Donny/강동윤
ede6e027c2
test(es): Organize tests ( #4129 )
2022-03-23 12:11:49 +00:00
SWC Bot
cdf868f7f0
chore: Publish crates
2022-03-23 08:25:15 +00:00
OJ Kwon
a6f39d3bd6
feat(cli): Implements some compile flags ( #4125 )
2022-03-23 08:22:27 +00:00
SWC Bot
c658823e8e
chore: Publish crates
2022-03-23 07:15:30 +00:00
OJ Kwon
50f7f465f9
feat(wasm/plugin): Implement initial plugin interface for wasm runtimes ( #4123 )
2022-03-23 16:12:59 +09:00
Donny/강동윤
304f5bd1f2
chore: Publish v1.2.160
2022-03-22 19:53:55 +09:00
Donny/강동윤
95c572f207
test(es/codegen): Add a test for fixed issue ( #4121 )
2022-03-22 19:49:59 +09:00
SWC Bot
8d322ef575
chore: Publish crates
2022-03-22 10:46:03 +00:00
Donny/강동윤
154d443c88
fix(es/compat): Fix regression of es2015
( #4119 )
2022-03-22 10:42:05 +00:00
SWC Bot
03f1c14840
chore: Publish crates
2022-03-22 10:06:36 +00:00
Donny/강동윤
13b2f38cdd
fix(es/typescript): Collect all bindings in strip
( #4118 )
2022-03-22 10:03:58 +00:00
SWC Bot
77722c4943
chore: Publish crates
2022-03-22 08:03:01 +00:00
Alexander Akait
634d732803
feat(es/ast): Add raw
to Str
( #4071 )
2022-03-22 07:54:08 +00:00
SWC Bot
5b6b9c0a25
chore: Publish crates
2022-03-22 06:27:29 +00:00
Donny/강동윤
4a9817f003
fix(es/minifier): Consider side effects while lifting sequences ( #4116 )
2022-03-22 06:25:19 +00:00
SWC Bot
57f8a0cad3
chore: Publish crates
2022-03-22 05:16:30 +00:00
OJ Kwon
f41a717c45
chore(plugin/runner): Update wasmer-*
( #4111 )
2022-03-22 05:14:20 +00:00
SWC Bot
58e1ed4a5f
chore: Publish crates
2022-03-22 04:54:28 +00:00
Austaras
9a8fc2776e
fix(es/parser): Make let
a reserved word in strict mode ( #4113 )
2022-03-22 04:52:10 +00:00
SWC Bot
39507b0268
chore: Publish crates
2022-03-21 11:37:18 +00:00
Artur
dd862ba9f8
feat(es/lints): Implement use-isnan
rule ( #4080 )
2022-03-21 11:35:10 +00:00
SWC Bot
bba8e6be67
chore: Publish crates
2022-03-21 11:13:26 +00:00
Donny/강동윤
c6f8742669
feat(es/minifier): Implement more evaluation rules ( #4030 )
2022-03-21 20:07:59 +09:00
SWC Bot
2e48c9fc24
chore: Publish crates
2022-03-21 05:16:53 +00:00
Donny/강동윤
61f1a37492
fix(es/codegen): Fix codes related to sourcemap ( #4106 )
2022-03-21 05:14:45 +00:00
SWC Bot
7d335cdd28
chore: Publish crates
2022-03-20 11:58:30 +00:00
Hannes Bornö
d38117d4cb
fix(es/parser): Allow parentheses in assignment target ( #4105 )
2022-03-20 11:56:22 +00:00
Donny/강동윤
9b64a6960f
fix(es/codegen): Emit decorators on class methods ( #4103 )
2022-03-20 07:53:53 +00:00
SWC Bot
133bfb43d3
chore: Publish crates
2022-03-20 07:13:59 +00:00
Austaras
552f16dba6
fix(es/codegen): Support multiline comments in return stmt ( #4102 )
2022-03-20 07:11:23 +00:00
SWC Bot
06c1b3ecb5
chore: Publish crates
2022-03-20 06:49:16 +00:00
Artur
9ceefa734f
feat(es/lints): Implement valid-typeof
rule ( #4095 )
2022-03-20 06:46:41 +00:00
Donny/강동윤
b31ead5cbe
chore: Fix CI
2022-03-20 15:25:35 +09:00
Donny/강동윤
565a7202ed
chore: Fix CI
2022-03-20 00:15:03 +09:00
SWC Bot
d7d160e2fa
chore: Publish crates
2022-03-19 15:00:25 +00:00
Edwin Coronado
57802cfcce
fix(common): Fix the line number of errors ( #4082 )
2022-03-19 23:56:12 +09:00
Donny/강동윤
3f78053227
chore: Typo
2022-03-19 23:17:48 +09:00
SWC Bot
165c752606
chore: Publish crates
2022-03-19 14:14:02 +00:00
Austaras
f5b9600b2b
fix(es/compat): Visit non-method properties in a nested object literal ( #4094 )
2022-03-19 14:11:54 +00:00
Donny/강동윤
544a3416ee
chore: Publish v1.2.159
with fix
2022-03-19 21:23:38 +09:00
Donny/강동윤
f2dfaba065
chore: Publish v1.2.159
2022-03-19 20:45:38 +09:00
SWC Bot
51e2dfd7e7
chore: Publish crates
2022-03-19 11:28:06 +00:00
Donny/강동윤
0d6bd813b2
fix(es/compat): Revert wrong fix of arrow
( #4093 )
2022-03-19 11:25:52 +00:00
SWC Bot
b4ad33ae3d
chore: Publish crates
2022-03-19 10:51:19 +00:00
Donny/강동윤
533f756274
fix(api/rust): Exclude test files from rust packages ( #4091 )
2022-03-19 10:49:12 +00:00
SWC Bot
f75ec3dd66
chore: Publish crates
2022-03-19 10:29:08 +00:00
Donny/강동윤
cb0881cc3d
fix(es/compat): Visit generated codes from arrow
( #4090 )
2022-03-19 10:26:58 +00:00
SWC Bot
2ea781bc26
chore: Publish crates
2022-03-19 10:03:42 +00:00
meskill
6ac7934017
fix(es/module/cjs): Fix conflict of a local export and exports-alls ( #4089 )
2022-03-19 09:56:14 +00:00
SWC Bot
e7d450c8af
chore: Publish crates
2022-03-19 07:07:31 +00:00
Donny/강동윤
d0f687bf44
feat(es/module/cjs): Support import.meta.url
( #4087 )
2022-03-19 07:05:11 +00:00
SWC Bot
9fa04fb2e7
chore: Publish crates
2022-03-19 06:42:59 +00:00
Donny/강동윤
b716210de1
fix(common): Fix handling of input source maps ( #4086 )
2022-03-19 06:40:59 +00:00
Donny/강동윤
792ab2ca25
test(es/parser): Add a test for a fixed issue ( #4085 )
2022-03-19 06:14:13 +00:00
SWC Bot
670b80169e
chore: Publish crates
2022-03-19 05:35:23 +00:00
Donny/강동윤
f66229822c
fix(es/resolver): Fix handling of decorators ( #4084 )
2022-03-19 05:32:53 +00:00
SWC Bot
60d820a47c
chore: Publish crates
2022-03-18 14:21:39 +00:00
Artur
b39e345d8e
feat(es/lints): Implement no-new-symbol
rule ( #4076 )
2022-03-18 23:19:02 +09:00
Donny/강동윤
174b48d4c3
chore: Publish v1.2.158
2022-03-18 20:58:54 +09:00
SWC Bot
62294eea4f
chore: Publish crates
2022-03-18 11:09:15 +00:00
Donny/강동윤
4af5e6d77b
fix(css/prefixer): Reduce the number of vars in debug build ( #4078 )
2022-03-18 11:07:01 +00:00
SWC Bot
0087627910
chore: Publish crates
2022-03-18 08:29:12 +00:00
Donny/강동윤
22d005e224
fix(es/modules): Fix sourcemap, really ( #4074 )
2022-03-18 08:26:58 +00:00
SWC Bot
a564ced26a
chore: Publish crates
2022-03-18 03:05:36 +00:00
Donny/강동윤
9458f08092
feat(es/modules): Support namespaced reexports ( #4073 )
2022-03-18 03:03:02 +00:00
SWC Bot
355b3b3001
chore: Publish crates
2022-03-18 01:46:26 +00:00
Donny/강동윤
55cfad152d
fix(es/helpers): Fix decorator helper script ( #4072 )
2022-03-18 01:44:13 +00:00
SWC Bot
1483a71c7e
chore: Publish crates
2022-03-17 22:16:43 +00:00
Donny/강동윤
bb08354950
fix(es/react): Fix _createElement
( #4070 )
2022-03-17 22:13:23 +00:00
Donny/강동윤
b4906cc1d5
chore: Publish v1.2.157
2022-03-17 19:31:01 +09:00
SWC Bot
a74d4ca679
chore: Publish crates
2022-03-17 10:29:25 +00:00
Donny/강동윤
9310c39fe9
fix(es/codegen): Fix sourcemap ( #4062 )
2022-03-17 10:26:58 +00:00
SWC Bot
94632b6940
chore: Publish crates
2022-03-17 08:21:45 +00:00
Donny/강동윤
f8a3849299
fix(es/helpers): Fix the name of _classPrivateFieldLooseBase
( #4061 )
2022-03-17 08:19:30 +00:00
OJ Kwon
5a2a6037d4
feat(node-swc): Embed target triple string ( #4058 )
2022-03-17 07:57:16 +00:00
SWC Bot
9d5413698f
chore: Publish crates
2022-03-17 07:34:36 +00:00
Alexander Akait
f2517a345b
feat(css/prefixer): Support more properties ( #4055 )
2022-03-17 07:25:51 +00:00
SWC Bot
a9708a5a1f
chore: Publish crates
2022-03-17 06:58:38 +00:00
Donny/강동윤
ffcb6ce523
fix(es/parser): Allow nested ambient context in .d.ts
files ( #4060 )
2022-03-17 06:56:26 +00:00
SWC Bot
aacc2a1f46
chore: Publish crates
2022-03-17 06:08:12 +00:00
Artur
833958bd74
feat(es/lints): Implement yoda
rule ( #3886 )
2022-03-17 06:05:39 +00:00
SWC Bot
4d6d766cf8
chore: Publish crates
2022-03-17 05:36:01 +00:00
Austaras
bbe8f3d8fe
fix(es/ast): Revert removal of definite
in PrivateProp
( #4051 )
2022-03-17 05:33:37 +00:00
SWC Bot
409bb9f3fe
chore: Publish crates
2022-03-17 05:09:17 +00:00
OJ Kwon
5c84fe525f
fix(plugin/runner): Make build pass for wasm32
( #4056 )
2022-03-17 05:07:03 +00:00
SWC Bot
fc7ea6afe0
chore: Publish crates
2022-03-16 14:28:00 +00:00
Alexander Akait
bd444c0ceb
fix(es/codegen): Fix codegen of string literals ( #4037 )
2022-03-16 14:25:26 +00:00
LongYinan
db9b988845
feat(node-swc): Add libc
field in Linux platform packages ( #4046 )
2022-03-16 18:58:24 +09:00
Donny/강동윤
da1fd033b8
chore: Fix CI
2022-03-16 17:30:28 +09:00
Donny/강동윤
702e0e124c
chore: Publish v1.2.156
2022-03-16 17:14:41 +09:00
SWC Bot
8eb9476cfb
chore: Publish crates
2022-03-16 08:13:01 +00:00
Donny/강동윤
834cd4f7b6
fix(es/modules): Use correct span for ExportAll
s ( #4038 )
2022-03-16 17:10:47 +09:00
SWC Bot
5824571a3f
chore: Publish crates
2022-03-16 04:22:52 +00:00
Donny/강동윤
ba1c854fb1
fix(es/lints): Fix false-positive of duplicate-exports
( #4041 )
2022-03-16 04:20:45 +00:00
SWC Bot
c6d781916f
chore: Publish crates
2022-03-15 22:48:06 +00:00
OJ Kwon
dab2002a2e
refactor(plugin/runner): Split modules and introduce feature flags ( #4035 )
2022-03-15 22:45:40 +00:00
Donny/강동윤
71f7cf2011
test(es): Add tests for fixed issues ( #4036 )
2022-03-15 20:38:31 +00:00
SWC Bot
bcd08f6838
chore: Publish crates
2022-03-15 20:09:43 +00:00
Donny/강동윤
3a4704fe77
feat(es/transforms/base): Add paren_remover
( #4034 )
2022-03-15 20:07:04 +00:00
SWC Bot
0d6fb99384
chore: Publish crates
2022-03-15 16:20:51 +00:00
Austaras
120d2a534e
fix(es/parser): Emit an error for multiple constructors with body ( #4031 )
2022-03-15 16:18:19 +00:00
Donny/강동윤
bba5a33415
fix(node-swc): Disable logging of warn
level by default ( #4033 )
2022-03-15 15:07:56 +00:00
SWC Bot
cc2aa361fa
chore: Publish crates
2022-03-15 14:19:50 +00:00
Donny/강동윤
e19a60aad4
fix(es/compat): Change pass ordering of es2015
( #4029 )
...
**Description:**
We should apply `regenerator` after `block_scoping` because `regenerator` does not know how to handle `const`s.
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/3006
2022-03-15 14:17:03 +00:00
SWC Bot
5e89d18370
chore: Publish crates
2022-03-15 12:23:49 +00:00
Austaras
0c76696ed2
fix(es/decorator): Insert initializer to constructor with body ( #4028 )
2022-03-15 12:21:17 +00:00
SWC Bot
6d5541ccbe
chore: Publish crates
2022-03-15 11:00:48 +00:00
Lennart
25e5ccc548
fix(es/parser): Allow building with stable rustc
( #4024 )
2022-03-15 19:58:29 +09:00
SWC Bot
b12a2f3ba5
chore: Publish crates
2022-03-15 09:47:41 +00:00
Donny/강동윤
73c91d34d5
fix(es/helpers): Inject helpers for scripts ( #4025 )
...
**Description:**
This PR adds support for helpers in script mode. For now, we does not support `externalHelpers` for scripts, as there is no standard for importing other files from a script.
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/2385
2022-03-15 09:43:57 +00:00
SWC Bot
2f6f829405
chore: Publish crates
2022-03-15 09:17:09 +00:00
Donny/강동윤
0c8c3d7d51
fix(es/decorator): Remove noop_fold_type
( #4022 )
2022-03-15 09:14:47 +00:00
SWC Bot
531762ae71
chore: Publish crates
2022-03-15 08:45:12 +00:00
Donny/강동윤
3173047f58
refactor(es/minifier): Cleanup ( #4020 )
...
**Description:**
- `Optimizer.data`: `Option<ProgramData>` => `ProgramData`.
- `Optimizer.done`: Remvoed.
- `Optimzer.done_ctxt`: Removed.
- `Pure`: Add `data: Option<&'a ProgramData>`.
2022-03-15 08:42:50 +00:00
SWC Bot
1902682bed
chore: Publish crates
2022-03-15 08:15:34 +00:00
OJ Kwon
629709e1b1
feat(cli/compile): Support out-file
( #4016 )
2022-03-15 08:13:15 +00:00
Donny/강동윤
be09ea6991
feat(es/minifier): Drop noop calls ( #4019 )
2022-03-15 16:23:32 +09:00
SWC Bot
abd94c8df2
chore: Publish crates
2022-03-15 07:02:06 +00:00
Alexander Akait
4f6f244170
feat(css/prefixer): Implement more rules for prefixer ( #4013 )
2022-03-15 06:58:22 +00:00
SWC Bot
5800737752
chore: Publish crates
2022-03-15 05:53:53 +00:00
David Campion
b337c2e2d4
fix(es): Sort spans while preserving comments ( #4011 )
2022-03-15 05:51:44 +00:00
SWC Bot
957a20d383
chore: Publish crates
2022-03-15 05:26:28 +00:00
Sahil mobaidin
f8d6127dd1
fix(es/parser): Report an error if LeftHandSideExpression
is invalid ( #4001 )
2022-03-15 14:24:19 +09:00
SWC Bot
9d6a57c6e5
chore: Publish crates
2022-03-14 14:32:45 +00:00
Alexander Akait
a4bc0927a0
feat(css): Supports more color notations ( #4009 )
2022-03-14 14:30:09 +00:00
Donny/강동윤
afa97f63df
chore: Publish v1.2.155
2022-03-14 19:27:27 +09:00
SWC Bot
db62bb6415
chore: Publish crates
2022-03-14 10:01:39 +00:00
Donny/강동윤
0ad13d93f2
fix(common): Don't use None
as source while generating source maps ( #4007 )
...
**Description:**
I used https://pastcompute.github.io/ScriptMapper/ to dump source map, and found that line/column becomes null if file is `None`. Seems like the rust crate `sourcemap` is mature enough to handle sourcemaps with those entries, but many other sourcemap libraries, including the one used by `@swc/cli` expects non-null value for the line and the column.
2022-03-14 09:51:51 +00:00
Donny/강동윤
ae2f8d6327
chore: Publish crates
2022-03-14 15:39:23 +09:00
Donny/강동윤
f650ca6bb9
doc(api/rust): Add an example for generating code and sourcemap ( #4005 )
2022-03-14 03:52:59 +00:00
SWC Bot
833dc89a2d
chore: Publish crates
2022-03-14 02:08:47 +00:00
Donny/강동윤
ee9a841f33
test(*): Print diagnostics to stderr while testing ( #4003 )
...
**Description:**
This will make debugging stack overflow and parser issues easier because it writes to stderrr right away, instead of holding a buffer for it.
2022-03-14 02:06:34 +00:00
Donny/강동윤
dac84b98e3
doc(api/rust): Add examples ( #4002 )
2022-03-13 22:07:34 +00:00
SWC Bot
8565a8e8f3
chore: Publish crates
2022-03-13 21:44:41 +00:00
Austaras
87a3c1c916
fix(es/resolver): Use correct context for identifiers after type parameters ( #4000 )
2022-03-13 21:42:24 +00:00
Donny/강동윤
38c0c0faa6
chore: Publish crates
2022-03-14 04:11:07 +09:00
SWC Bot
8ba1f201b9
chore: Publish crates
2022-03-13 19:09:34 +00:00
Donny/강동윤
40b8a4e596
feat(common): Implement a pretty error reporter ( #3946 )
2022-03-13 19:07:18 +00:00
SWC Bot
13ee45a830
chore: Publish crates
2022-03-13 18:40:08 +00:00
Alexander Akait
96d6f37c20
feat(css/parser): Improve error reporting ( #3999 )
2022-03-13 18:37:42 +00:00
SWC Bot
3cfe4ccb94
chore: Publish crates
2022-03-13 18:00:19 +00:00
Alexander Akait
ece8d962f8
fix(css/codegen): Fix source maps ( #3997 )
2022-03-14 02:55:18 +09:00
SWC Bot
386456f48a
chore: Publish crates
2022-03-13 09:13:23 +00:00
Donny/강동윤
a23af2dea2
feat(es/minifier): Compress more comparisons ( #3996 )
2022-03-13 09:11:16 +00:00
Donny/강동윤
dabc4920a8
test(es): Add auto-closable tests ( #3995 )
2022-03-13 08:45:55 +00:00
SWC Bot
3fba1a1a6d
chore: Publish crates
2022-03-13 07:54:40 +00:00
Donny/강동윤
b22d084180
test(es): Add an execution test system ( #3994 )
...
Description:
As we have a way to verify that input is behaving identically, we create a huge matrix of compile options and process the input with all of those options.
This system can be used to check for fixed issues easily.
For first, someone can add issues using a unix hidden directory, which starts with `.`. Those tests are ignored by `testing::fixture`.
Then, when something is changed, one can run `./scripts/check-issues.sh`. If a test succeeds, it means it's fixed and the starting dot (`.`) of the path to the test input file is removed.
2022-03-13 07:47:39 +00:00
SWC Bot
ad3115fa2f
chore: Publish crates
2022-03-13 03:29:32 +00:00
Donny/강동윤
64ca5bae4d
feat(es/minifier): Implement more rules for arrows
( #3992 )
2022-03-13 03:27:15 +00:00
SWC Bot
d9db2faded
chore: Publish crates
2022-03-13 02:59:56 +00:00
Donny/강동윤
f7b212bfc4
perf(es/minifier): Use Vec<u8>
as a buffer for base54
( #3993 )
...
Description:
We are only using ASCII characters so we can avoid utf8 logics by using `Vec<u8>` as a buffer and converting it into `String` at the end.
2022-03-13 02:57:47 +00:00
SWC Bot
abf6a1b294
chore: Publish crates
2022-03-12 16:16:12 +00:00
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/강동윤
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/강동윤
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
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
SWC Bot
978a210c68
chore: Publish crates
2022-03-11 07:33:52 +00:00
David Campion
c5a0c9a0ab
feat(es): Add an option to preserve all comments ( #3815 )
2022-03-11 07:25:59 +00:00
SWC Bot
6257f0f990
chore: Publish crates
2022-03-11 05:48:42 +00:00
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