Commit Graph

7217 Commits

Author SHA1 Message Date
Austaras
93a264c9a4
fix(es/renamer): Ensure that param and function body are in same scope (#7271)
**Description:**

The problem arises in L235 of swc_ecma_transforms_base/src/rename/mod.rs

```rs
unit!(visit_mut_fn_decl, FnDecl, true);
```

which calls `get_map` and evals to

```rs
node.visit_children_with(&mut v);
```

with `FnDecl` and `Analyzer` in L132. However, in `Analyzer`, a visit to raw function was not overloaded, so function arguments and function body are considered different scopes.

**Related issue:**

 - Closes #7261.
2023-04-15 04:19:52 +00:00
SWC Bot
42c4b07f34 chore: Publish crates 2023-04-15 03:29:04 +00:00
IWANABETHATGUY
c4cce12758
build(cargo): Update bitflags to v2 (#7270) 2023-04-15 03:26:56 +00:00
SWC Bot
db9320c051 chore: Publish crates 2023-04-15 02:19:38 +00:00
Cong-Cong Pan
635bf8116b
refactor(es/parser): Remove :: token as it's not used (#7268) 2023-04-15 02:17:37 +00:00
SWC Bot
0e1435a97f chore: Publish crates 2023-04-15 01:32:33 +00:00
magic-akari
30a4e52f74
fix(es/helpers): Do not duplicate property names (#7266)
**Related issue:**

 - Closes #7264.
2023-04-15 01:30:43 +00:00
SWC Bot
cfc53fe0df chore: Publish crates 2023-04-15 00:36:58 +00:00
limerick
219a738a75
fix(es): Allow extra comments after sourceMappingURL (#7262) 2023-04-15 00:35:04 +00:00
SWC Bot
5f0660667f chore: Publish crates 2023-04-14 23:50:14 +00:00
Robin Appelman
beefdd459c
fix(es/loader): Fix browser overwrites not applying correctly (#7243) 2023-04-14 23:48:22 +00:00
SWC Bot
a9e7efc129 chore: Publish crates 2023-04-14 22:55:55 +00:00
Donny/강동윤
578960d321
chore(ci): Fix crev action (#7272) 2023-04-15 07:53:43 +09:00
Donny/강동윤
5629e6b529 chore: Publish crates 2023-04-13 20:23:18 +09:00
SWC Bot
e618d4de6a chore: Publish crates 2023-04-13 11:12:23 +00:00
Donny/강동윤
b05916bdbb
chore: Publish v1.3.50 with swc_core v0.75.15 (#7259) 2023-04-13 11:10:36 +00:00
SWC Bot
e6cffb7581 chore: Publish crates 2023-04-13 08:41:47 +00:00
OJ Kwon
ff3decc7db
build(plugin): Update rkyv (#7257) 2023-04-13 08:39:23 +00:00
SWC Bot
fb9eed24ad chore: Publish crates 2023-04-13 07:00:40 +00:00
Donny/강동윤
1fe5c3a803
feat(es): Use minify.format.ascii_only if output.charset is not specified (#7258)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/7240.
2023-04-13 06:58:43 +00:00
SWC Bot
8fc527343b chore: Publish crates 2023-04-13 05:52:04 +00:00
OJ Kwon
6bd58cbcfd
refactor(plugin): Remove bytecheck flag (#7256) 2023-04-13 05:49:58 +00:00
SWC Bot
604667d522 chore: Publish crates 2023-04-13 03:25:23 +00:00
Donny/강동윤
a44fea1ec8
fix(es/minifier): Fix handling of optional chaining when hoist_props is enabled (#7246)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/7228.
2023-04-13 03:23:29 +00:00
SWC Bot
dd56100585 chore: Publish crates 2023-04-12 13:23:23 +00:00
limerick
f0e3b1d09a
feat(es): Provide more information when loading of input source map failed (#7249) 2023-04-12 13:21:25 +00:00
SWC Bot
8e5cb60183 chore: Publish crates 2023-04-12 12:33:03 +00:00
OJ Kwon
efad714983
feat(plugin): Enable validation (#7250) 2023-04-12 12:30:38 +00:00
SWC Bot
d4782ee526 chore: Publish crates 2023-04-12 11:46:53 +00:00
magic-akari
2e947e7aeb
fix(es/compat): Handle export function in reserved_word (#7251) 2023-04-12 11:44:49 +00:00
SWC Bot
f31f67c7fb chore: Publish crates 2023-04-11 07:05:27 +00:00
Donny/강동윤
e35097fd8c
fix(es/codegen): Respect ascii_only for identifiers (#7247)
**Related issue:**

 - https://github.com/swc-project/swc/issues/7240.
2023-04-11 07:03:19 +00:00
SWC Bot
33ff2ba7c4 chore: Publish crates 2023-04-11 04:50:23 +00:00
Donny/강동윤
559d1202bc
feat(es/minifier): Support PURE comment of seq exprs (#7245)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/7241.
2023-04-11 04:48:11 +00:00
SWC Bot
a0e193d177 chore: Publish crates 2023-04-11 03:47:41 +00:00
Donny/강동윤
70b86dbe37
refactor(plugin/runner): Fix clippy warnings (#7244) 2023-04-11 03:45:49 +00:00
SWC Bot
80e125a386 chore: Publish crates 2023-04-11 02:13:17 +00:00
David Sherret
6614886192
fix(es/parser): Parse const type parameters in arrow function expressions (#7242) 2023-04-11 02:11:04 +00:00
SWC Bot
2a662350e6 chore: Publish crates 2023-04-10 10:47:52 +00:00
Donny/강동윤
01db30f91e
fix(es/parser): Reset ctx for cond while parsing a stmt (#7232) 2023-04-10 10:45:49 +00:00
SWC Bot
c06690ec9c chore: Publish crates 2023-04-10 09:31:19 +00:00
Yukang
c6659183a6
fix(es): Fix a crash related to an empty source map (#7229) 2023-04-10 09:28:15 +00:00
SWC Bot
ab9e793fa8 chore: Publish crates 2023-04-10 08:48:13 +00:00
Yukang
b1c40a411f
fix(es/parser): Use a hard error for missing r-paren in an if stmt (#7223)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/7104.
2023-04-10 08:46:01 +00:00
SWC Bot
0fe90881b5 chore: Publish crates 2023-04-10 07:03:43 +00:00
Donny/강동윤
695ce060e9
test(es/plugin): Enable E2E test again (#7236) 2023-04-10 07:01:56 +00:00
Donny/강동윤
a24f3554ce chore: Publish crates 2023-04-10 14:04:04 +09:00
Donny/강동윤
1cc60084a2 chore: Publish v1.3.49 with swc_core v0.75.1 2023-04-10 13:59:00 +09:00
SWC Bot
8741fdb126 chore: Publish crates 2023-04-10 04:55:59 +00:00
Donny/강동윤
b868ed02a3
refactor(plugin/runner): Fix publish action (#7234) 2023-04-10 13:54:08 +09:00