Donny/강동윤
4f23d651d1
fix(es/minifier): Consider capturing while inlining ( #3322 )
...
swc_ecma_minifier:
- Don't inline functions if it captures the environment.
2022-01-21 10:24:41 +09:00
Donny
57e79b6fce
chore: Publish crates
2022-01-21 10:03:21 +09:00
Alexander Akait
34943ffa15
fix(css): Fix the type definition of @support
at-rules ( #3330 )
2022-01-21 00:57:29 +00:00
Donny
af53b9487f
chore: Publish crates
2022-01-20 23:57:38 +09:00
magic-akari
6d1ad368ac
fix(es/compat): Fix regression of destructuring
( #3326 )
2022-01-20 14:46:58 +00:00
Donny
2cc852a0b5
chore: Publish crates
2022-01-20 23:19:23 +09:00
Alexander Akait
506a31078a
fix(css/parser): Fix parsing of at rules ( #3328 )
2022-01-20 14:15:36 +00:00
LongYinan
8a76935ca2
perf(node): Avoid cloning options ( #3325 )
2022-01-20 10:47:37 +00:00
Donny
faacce3246
chore: Publish crates
2022-01-20 18:34:36 +09:00
Donny
848e9c8b8a
chore: Publish v1.2.133
2022-01-20 17:13:10 +09:00
Donny
e2424af430
chore: Publish crates
2022-01-20 16:10:32 +09:00
Donny
f62e6312d5
chore: Publish crates
2022-01-20 16:07:42 +09:00
Donny/강동윤
57204e39cd
fix(es/minifier): Don't inline functions used as arguments ( #3320 )
...
swc_ecma_minifier:
- Preserve a variable initialized with a function expression if it's used as an argument.
2022-01-20 16:06:23 +09:00
Donny
e0c362b978
chore: Publish v1.2.132
2022-01-20 12:04:05 +09:00
Donny
cb50328d85
chore: Publish crates
2022-01-20 11:58:57 +09:00
Alexander Akait
0723ee2828
fix(css): Fix parsing of media queries ( #3318 )
...
Co-authored-by: Donny/강동윤 <kdy1997.dev@gmail.com>
2022-01-20 02:57:24 +00:00
LongYinan
9608605772
build(node-swc): Fix GLIBC < 2.18 compatible issues and android arm binary loading issue ( #3314 )
2022-01-20 02:21:24 +00:00
Donny
1bd01b4829
chore: Publish crates
2022-01-20 10:34:54 +09:00
David Campion
5af79f634b
doc(repo): Update contributing docs ( #3298 )
2022-01-20 10:08:28 +09:00
Donny
ca2598391c
chore: Publish v1.2.131
2022-01-19 23:33:01 +09:00
Donny
11aac9b89f
chore: Publish crates
2022-01-19 23:17:46 +09:00
Donny/강동윤
b4d21bf077
fix(es/minifier): Prevent infinite loop due to negation ( #3310 )
...
swc_ecma_minifier:
- Don't mark as modified while negating.
2022-01-19 23:17:17 +09:00
Donny
70ce6a0e32
chore: Publish crates
2022-01-19 23:12:32 +09:00
Austaras
9e636c7e58
refactor(es): Add visit_obj_and_computed
macro ( #3304 )
2022-01-19 23:11:52 +09:00
Donny
b4f268fa23
chore: Publish crates
2022-01-19 17:39:58 +09:00
Donny/강동윤
1aa494b1c0
fix(es/minifier): Fix logic for checking arguments
( #3313 )
...
swc_ecma_minifier:
- Don't mark `arguments` in nested scope as a inline blocker.
2022-01-19 17:39:24 +09:00
Donny
4966af8273
chore: Publish crates
2022-01-19 16:38:33 +09:00
Donny/강동윤
289122009b
refactor(es/minifier): Fix clippy warnings ( #3312 )
2022-01-19 16:37:55 +09:00
Donny
173a3a2ac9
chore: Publish crates
2022-01-19 13:25:21 +09:00
Donny/강동윤
18cd98e54c
doc(swc): Document typescript::strip
( #3305 )
2022-01-19 13:24:35 +09:00
Donny
dca1c919c2
chore: Publish crates
2022-01-18 20:52:56 +09:00
Donny/강동윤
8e796cdc0a
fix(es/minifier): Don't emit invalid code ( #3302 )
...
swc_ecma_minifier:
- Add lots of debug assertions for invalid codes.
- Remove all invalid AST nodes eagerly.
- `pure`: Normalize `PatOrExpr`.
- `analyzer`: Handle `PatOrExpr` correctly.
2022-01-18 20:52:21 +09:00
Donny
1e4bf76c2b
chore: Publish crates
2022-01-18 16:46:13 +09:00
Donny/강동윤
210ecf83bb
feat(es/minifier): Drop more expressions from parallel optimizer ( #3303 )
...
swc_ecma_minifier:
- `pure`: Implement more rule for dropping useless expressions.
2022-01-18 16:45:47 +09:00
Donny
cea7d21ca4
chore: Publish crates
2022-01-18 12:52:37 +09:00
Donny/강동윤
18a11d7c8f
fix(es/minifier): Remove more side-effect-free expressions. ( #3301 )
...
swc_ecam_minifier:
- `pure`: Drop more binary expressions.
- `pure`: Drop more literals.
2022-01-18 12:51:31 +09:00
Donny
3d7d96588e
chore: Publish crates
2022-01-18 12:26:37 +09:00
OJ Kwon
c6ffdc8717
feat(plugin): Add PluginError
( #3300 )
2022-01-18 12:26:04 +09:00
Donny
5a08327784
chore: Publish crates
2022-01-18 11:30:19 +09:00
asquared31415
641265b147
fix(common): Use siphasher
directly and upgrade transitive dependencies to avoid UB ( #3299 )
2022-01-18 11:29:53 +09:00
Donny
d7964dd547
chore: Publish crates
2022-01-17 22:42:52 +09:00
Donny
ba4083959f
chore: Publish crates
2022-01-17 22:41:25 +09:00
Austaras
89235b8294
fix(es/compat): Apply static_blocks
before class_properties
( #3292 )
2022-01-17 13:20:02 +00:00
Donny
be33d20baf
chore: Publish crates
2022-01-17 16:18:53 +09:00
Donny/강동윤
9a898951bc
fix(es/resolver): Ignore names of jsx attributes ( #3289 )
...
swc_ecma_transforms_base:
- Ignore names of jsx attributes. (Closes #2854 )
2022-01-17 16:18:07 +09:00
Donny
d696c324fb
chore: Publish crates
2022-01-17 16:05:12 +09:00
Satish Srinivasan
2352920889
feat(es/compat): Use remove useless source map entries generated by classes
( #3242 )
2022-01-17 06:48:31 +00:00
Donny
a424ac30ed
chore: Publish crates
2022-01-17 15:17:30 +09:00
Donny/강동윤
fa5c063144
fix(es/minifier): Inline into interpolations in tagged template literals ( #3287 )
...
swc_ecma_minifier:
- Inline into tagged template literals. (Closes #2923 )
2022-01-17 15:17:01 +09:00
Donny
023fc956ae
chore: Publish crates
2022-01-17 14:30:25 +09:00
Donny/강동윤
b55ae4b312
fix(es/minifier): Fix analysis of unary expressions ( #3286 )
...
swc_ecma_minifier:
- Mark update as usage and assignment. (Closes #3265 )
2022-01-17 14:28:35 +09:00
Donny
a282146f7f
chore: Publish v1.2.130
2022-01-17 13:38:10 +09:00
Donny
681de03e4b
chore: Publish crates
2022-01-17 13:36:00 +09:00
Austaras
90a62bb215
refactor(es/utils): Merge the super field visitor with FnEnvHoister
( #3279 )
2022-01-17 13:35:32 +09:00
Donny
7ff5f0f9f2
chore: Publish crates
2022-01-17 00:22:39 +09:00
RiESAEX
b76d1da699
fix(es/transforms): Handle template literals within jsonify
pass ( #3282 )
2022-01-16 14:57:12 +00:00
Donny
0955c3646b
chore: Publish crates
2022-01-16 23:32:02 +09:00
Niklas Mischkulnig
162c1fe047
fix(es/transforms): Remove unsafe new String("...")
optimization ( #3284 )
2022-01-16 23:31:08 +09:00
Donny
7ec6e94cb0
chore: Publish crates
2022-01-16 16:58:21 +09:00
Donny/강동윤
9dd0647e3a
feat(es/ast): Improve AST api for plugin authors ( #3281 )
...
swc_ecma_ast:
- Improve API for AST creation.
2022-01-16 16:56:41 +09:00
Donny/강동윤
e8670b3383
refactor(es): More fix for clippy ( #3280 )
2022-01-16 14:33:06 +09:00
Donny
2ec540da35
chore: Publish crates
2022-01-16 04:22:00 +09:00
RiESAEX
6406b49df2
fix(es/parser): Throw an error when function body has use strict and paramaters is not simple ( #3278 )
2022-01-16 04:21:02 +09:00
Donny
d396c32fe5
chore: Publish crates
2022-01-15 21:56:36 +09:00
Donny/강동윤
88a258a5fb
fix(es/react): Fix createElement
( #3277 )
...
swc_ecma_transforms_react:
- Fix arguments passed to `_createElement`. (https://github.com/vercel/next.js/issues/33291 )
2022-01-15 21:55:58 +09:00
Donny
a4e93eb2df
chore: Publish crates
2022-01-15 17:20:51 +09:00
magic-akari
f4b3cb714a
fix(es/resolver): Treat a switch statement as a block scope ( #3275 )
2022-01-15 17:20:17 +09:00
Donny/강동윤
357a350390
refactor(*): Cleanup ( #3274 )
2022-01-15 16:43:34 +09:00
Donny/강동윤
2690742db0
refactor(es/transforms): Cleanup ( #3273 )
2022-01-15 15:36:40 +09:00
Donny
9b98ada0d2
chore: Publish crates
2022-01-15 14:11:49 +09:00
OJ Kwon
66d1a92635
feat(plugin/runner): Free allocated memory on errors ( #3270 )
2022-01-15 05:10:19 +00:00
OJ Kwon
a4c497464d
feat(plugin/runnner): Support wasm32-wasi
targets ( #3271 )
2022-01-15 04:40:00 +00:00
Donny
6ad418339e
chore: Publish crates
2022-01-14 23:14:37 +09:00
RiESAEX
d3cc488ac1
feat(es/compat): Use var
for _len
and args
in rest parameters ( #3267 )
2022-01-14 14:13:42 +00:00
Donny
8753f8cfc7
chore: Publish crates
2022-01-14 20:24:12 +09:00
Alexander Akait
c195335012
feat(css): Support @layer
at-rule ( #3258 )
2022-01-14 11:21:41 +00:00
Donny
235a849485
chore: Publish crates
2022-01-14 16:38:01 +09:00
Donny/강동윤
efd86715c9
fix(es/minifier): Preserve side effects in correct position ( #3263 )
...
swc_ecma_minifier:
- Add `fake_block` mark.
- Inject statements for side effects from `visit_mut_stmt` instead of `visit_mut_stmt_likes`. (Closes #2926 )
2022-01-14 16:36:48 +09:00
Donny
d03824b13d
chore: Publish crates
2022-01-14 12:45:45 +09:00
Donny/강동윤
7c19e26d0f
fix(es/transforms): Fix this
in async arrow class properties ( #3252 )
...
swc_ecma_transforms_compat:
- `async_to_generator`: Fix `this` in async class properties. (https://github.com/vercel/next.js/issues/33283 )
- Add a test for #3228 (Closes #3228 ).
2022-01-14 12:44:34 +09:00
Donny
1f49793ac9
chore: Publish crates
2022-01-14 10:41:07 +09:00
Alexander Akait
ade8ab8c35
fix(css/lexer): Resolve a TODO
( #3260 )
2022-01-13 23:59:52 +00:00
Donny
c114e1b6a9
chore: Publish crates
2022-01-14 08:34:08 +09:00
mrauhu
69978518c9
fix(es/ast): Update EsVersion::latest()
( #3261 )
2022-01-14 08:33:38 +09:00
Donny/강동윤
15b604b6d6
refactor(*): Fix some clippy warnings ( #3257 )
2022-01-14 07:20:45 +09:00
Donny/강동윤
978de5943e
chore(ci): Configure clippy
( #3250 )
2022-01-13 23:06:11 +09:00
Donny
dc111bbcac
chore: Publish crates
2022-01-13 18:42:02 +09:00
Donny/강동윤
0843f742c5
fix(swc): Remove wrong-target
( #3251 )
...
swc:
- Remove the cargo feature `wrong-target`. (Closes #1108 )
2022-01-13 18:41:34 +09:00
Donny
59651a1ff1
chore: Publish v1.2.129
2022-01-13 13:46:11 +09:00
Donny
311758572d
chore: Publish crates
2022-01-13 13:42:06 +09:00
David Sherret
282232c995
fix(es/typescript): Remove rogue println
( #3244 )
2022-01-13 13:41:34 +09:00
Donny
c13bba8401
chore: Publish crates
2022-01-12 18:39:56 +09:00
OJ Kwon
432d5d3fb7
feat(plugin/macro): Add safe API for plugins based on a proc-macro ( #3240 )
2022-01-12 09:32:52 +00:00
Donny
db952ecf01
chore: Publish crates
2022-01-12 16:58:23 +09:00
Donny/강동윤
74fd353053
fix(es/minifier): Fix bugs ( #3238 )
...
swc_ecma_minifier:
- `collapse_vars`: Respect `mutated`. (Closes #2679 )
- Add a test for https://github.com/vercel/next.js/issues/31084 .
2022-01-12 16:57:54 +09:00
Donny
dc99778808
chore: Publish crates
2022-01-12 08:28:25 +09:00
Donny/강동윤
12dd0a6c1f
fix(es/minifier): Fix optimization of assignment expressions ( #3231 )
...
swc_ecma_minifier:
- Check if the operator is `=` before optimizing assignment with a binary expression.
2022-01-12 08:26:56 +09:00
Donny
a2445e743b
chore: Publish crates
2022-01-12 04:46:21 +09:00
David Sherret
105cbc2017
fix(es/parser): Fix span of ComputedPropName
( #3234 )
2022-01-12 04:45:52 +09:00
Donny
acfce35d77
chore: Publish crates
2022-01-11 19:37:43 +09:00