Commit Graph

157 Commits

Author SHA1 Message Date
Donny/강동윤
e0de83e862
fix(es/compat): Fix is_setter in parameters pass (#7348)
**Description:**

x-ref: https://vercel.slack.com/archives/C02HY34AKME/p1682667306929829
2023-05-02 02:11:42 +00:00
Fy
66b5b110bf
fix(es/compat): Transform curried function call with optional chaining (#7313)
**Related issue:**

 - Closes #7312
2023-04-24 05:23:53 +00:00
magic-akari
38dfb91ebc
fix(es/helpers): Remove unnecessary parameters in helper_expr! macro (#7296)
**Description:**

We have moved to snake_case, so the last parameter of helper_expr is unnecessary.
2023-04-20 08:26:34 +00:00
Donny/강동윤
38495a9835
test(es/compat): Add a test for a wrong issue (#7300)
**Related issue:**

 - Closes #7290.
2023-04-20 11:10:25 +09:00
Donny/강동윤
f5c62fbbf8
fix(es/compat): Fix finally handling of generator (#7215)
**Description:**

Update generator implementation to match
e83d61398e/src/compiler/transformers/generators.ts

**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/5913.
2023-04-06 09:37:21 +00:00
magic-akari
3ca954b9f9
fix(es/helpers): Use snake_case for helpers (#7147)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/7144.
 - Closes https://github.com/swc-project/swc/issues/7118.
2023-03-31 15:15:21 +09:00
magic-akari
23fb8c5563
fix(es/compat): Fix the position for temp var injection (#7171) 2023-03-30 17:41:55 +09:00
Donny/강동윤
0259a7465f
build(cargo): Update rustc to nightly-2023-03-20 (#7170)
**Description:**

This PR also updates `rkyv` to `=0.7.40`.

**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6807.
2023-03-30 08:06:02 +00:00
Donny/강동윤
12546c853a
build(cargo): Revert rustc upgrade (#7162)
**Description:**

The `rkyv` bug is not fixed.
2023-03-29 17:48:45 +09:00
Donny/강동윤
e445502072
build(cargo): Update rustc to nightly-2023-03-28 (#7154)
**Description:**

This PR also updates `rkyv` to `=0.7.40`.

**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6807.
2023-03-29 06:24:19 +00:00
Donny/강동윤
2bc631df87
fix(es/compat): Don't modify private fields from reserved_words pass (#7113)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/7106.
2023-03-21 09:27:31 +00:00
Austaras
c114f006b4
refactor(es/resolver): Make syntax context for unresolved and top-level stable (#7096) 2023-03-20 11:01:19 +09:00
Austaras
0f09e356c3
feat(es/resolver): Make scope context identical to the vars (#7095) 2023-03-19 11:57:14 +09:00
Donny/강동윤
963c460613
refactor: Fix lints using clippy from nightly-2023-03-13 (#6920) 2023-03-14 04:56:21 +00:00
magic-akari
bb6dde7943
fix(es/compat): Handle useDefineForClassFields: false (#7055)
**BREAKING CHANGE:**

IMPORTANT NOTE: Users of decorators are recommended to configure `"useDefineForClassFields": false` to ensure that your code is properly transpiled.


**Related issue:**
 - Closes https://github.com/swc-project/swc/issues/6985.
2023-03-12 12:56:10 +09:00
magic-akari
b78ce8b7c2
feat(es/compat): Simplify static blocks in classes (#7056) 2023-03-11 00:30:49 +00:00
Donny/강동윤
e79d46697c
test(es/compat): Add a test for a fixed issue (#6887)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6886.
2023-01-31 15:01:57 +00:00
Donny/강동윤
57781e90d3
fix(es/compat): Make optional chaining pass less permissive (#6885)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6878.
2023-01-31 06:24:23 +00:00
Donny/강동윤
d8088646df
fix(es/compat): Fix optional chaining pass (#6875)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6762.
2023-01-30 11:14:53 +00:00
Donny/강동윤
e7ea054c63
test(es): Enable execution tests for fixed issues (#6805) 2023-01-13 07:30:21 +00:00
Donny/강동윤
7dc5ccb0fc
test(es/compat): Add a test to verify parameters passs (#6792)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6790.
2023-01-12 15:54:36 +09:00
HeYunfei
a1ccc8afdf
feat(es/minifier): Make name mangler understand block scoping (#6670)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/5090.
 - Closes https://github.com/swc-project/swc/issues/5766.
2023-01-06 03:14:10 +00:00
HeYunfei
4c2d42261e
fix(es/compat): Prepend generated _loop to the correct scope (#6604) 2022-12-09 01:48:29 +00:00
Donny/강동윤
cc4646a4cc
test(ts/compat): Migrate inline tests to fixture testing (#6475) 2022-11-28 04:54:38 +00:00
Austaras
c57307d002
refactor(es): Remove settings related to privateInObject (#6468) 2022-11-21 08:34:20 +09:00
Austaras
f7072dbb7e
fix(es/compat): Fix consecutive optional call (#6461) 2022-11-17 02:00:46 +00:00
Donny/강동윤
81a4bb304a
fix(es/compat): Fix span hygiene of function naming pass (#6345)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6344.
2022-11-14 06:03:09 +00:00
magic-akari
67286032b1
fix(es/compat): Improve destructuring pass (#6412) 2022-11-13 23:52:34 +00:00
Austaras
574502a816
feat(es/utils): Use more unique names for aliases (#6399) 2022-11-11 01:57:49 +00:00
Austaras
982012289f
fix(es/compat): Fix this in computed class method names (#6364) 2022-11-06 00:20:21 +00:00
Austaras
6cc9e90ef4
fix(es/compat): Handle super access in a private static property (#6361) 2022-11-05 15:25:51 +00:00
Alexander Akait
3bea6f7248
fix(es/compat): Fix destructuring of an empty array (#6314) 2022-11-02 16:06:52 +09:00
Austaras
aa18612e62
fix(es/compat): Fix new.target in a nested scope (#6296) 2022-10-31 02:29:55 +00:00
Austaras
0e2de3069d
fix(es/compat): Fix super method call in loose mode (#6207) 2022-10-20 00:20:43 +00:00
Austaras
aefc11b8a7
feat(es/compat): Support readonly and writeonly for private fields (#6182) 2022-10-18 05:38:36 +00:00
Donny/강동윤
e6b1dd4731
feat(es/testing): Add an option to test sourcemap (#6079) 2022-10-07 05:52:22 +00:00
Donny/강동윤
0c67a3adba
fix(es/compat): Fix handling of deep array pattern of object rest pass (#6035) 2022-10-04 23:34:03 +09:00
Donny/강동윤
80da0981bd
feat(es/compat): Support iterator protocol on loose mode (#6034) 2022-10-04 21:42:39 +09:00
Austaras
31ffd5a01d
fix(es/renamer): Use a separate scope for the name of FnExpr (#6008) 2022-10-01 12:33:19 +09:00
magic-akari
2b2464271a
fix(es/codegen): Remove redundant ; after export default decl (#5851) 2022-09-14 06:07:15 +00:00
Donny/강동윤
1ae539aac5
test(es/compat): Add a test for a fixed issue (#5672) 2022-08-30 11:09:58 +00:00
Donny/강동윤
4820f0cbcc
fix(es/compat): Handle yield in block scoping pass (#5668) 2022-08-30 09:55:18 +00:00
Donny/강동윤
83fec33359
feat(es/generator): Use new generator implementation (#5627) 2022-08-25 16:10:47 +00:00
Donny/강동윤
927ae7e8d3
fix(es/compat): Revert generator reimplementation (#5624) 2022-08-25 17:58:37 +09:00
Donny/강동윤
2aa009018f
feat(es/generator): Replace generator implementation with one from tsc (#5173) 2022-08-25 04:50:00 +00:00
magic-akari
86452511e7
fix(es/compat): Fix destructuring assignments and updates of super properties in async method (#5580) 2022-08-22 13:36:02 +00:00
magic-akari
bee26a9abb
fix(es/compat): Fix destructuring assignments and updates of super properties (#5576) 2022-08-22 00:42:50 +00:00
Austaras
b717a68199
fix(es/compat): Use separate SyntaxContext for class names (#5566) 2022-08-19 13:01:50 +00:00
Donny/강동윤
b9933b159a
feat(es/compat): Fix syntax context of transpiled class methods (#5498) 2022-08-16 13:07:27 +00:00
Donny/강동윤
b655bf473a
fix(es/helpers): Fix for await (#5458) 2022-08-14 05:46:07 +00:00