Donny/강동윤
85a8defc37
fix(es/preset-env): Fix default target ( #6921 )
...
**Description:**
Previously the default value of `targets` was `""`, which is not deterministic.
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6888 .
2023-02-09 05:08:41 +00:00
Austaras
2fcab36418
refactor(es/preset-env): Use a const fn instead of a macro ( #6844 )
2023-01-23 10:13:42 +00:00
RiESAEX
ad8d043f1d
feat(es/helper): Use require
to load polyfills and helpers in Script ( #6778 )
2023-01-16 16:07:40 +00:00
RiESAEX
98da6444b6
perf(es/preset-env): Use VisitMut
instead of Fold
for polyfill ( #6734 )
2023-01-03 03:45:25 +00:00
Fy
5fed222829
fix(es/preset-env): Align polyfills with @babel/plugin-polyfill-corejs3
( #6673 )
2022-12-19 06:41:37 +00:00
Donny/강동윤
8d4d32664d
fix(es/preset-env): Update data ( #6106 )
2022-10-10 13:07:25 +00:00
Donny/강동윤
80da0981bd
feat(es/compat): Support iterator protocol on loose mode ( #6034 )
2022-10-04 21:42:39 +09:00
Donny/강동윤
3c3529cb84
build(rustc): Update rustc ( #5943 )
...
**Description:**
This PR updates rustc, and fix some performance bugs of `swc_common`.
2022-09-24 03:33:47 +00:00
Donny/강동윤
1a182ef8d9
perf(es): Optimize memory layout of AST ( #5829 )
2022-09-20 12:47:21 +09: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
Austaras
5a06271116
feat(es/compat): Add pure comments for generator and async transform ( #5463 )
2022-08-12 13:39:26 +00:00
Austaras
06677c26ee
fix(es/preset-env): Don't add instance properties when there's a static property ( #5305 )
2022-07-27 05:11:19 +00:00
Austaras
dd0a152f49
fix(es/preset-env): Realign with babel-polyfills
( #5293 )
2022-07-26 12:16:16 +00:00
Austaras
375774d31e
fix(es): Check the syntax context of arguments
( #5174 )
2022-07-13 10:29:03 +00:00
Edwin Coronado
2d94797975
feat(es/parser): Support d
in regex flag for es2022 ( #5127 )
2022-07-07 04:35:49 +00:00
magic-akari
fa68cbd74a
refactor(es/module): Implement new module transformer ( #4758 )
2022-06-27 12:32:06 +00:00
magic-akari
04fc1cb429
fix(es/compat): Fix name conflict of Array
( #5034 )
2022-06-25 04:55:59 +00:00
Austaras
573bcb5b49
fix(es/compat): Use define for non-spread props ( #4754 )
2022-05-26 20:32:41 +09:00
Austaras
4262874ce4
fix(es/preset-env): Do not import new features when using old core-js ( #4458 )
2022-04-28 02:52:35 +00:00
那里好脏不可以
37a8c90750
chore(*): Typo + fomatting ( #4304 )
2022-04-11 18:45:58 +00:00
Donny/강동윤
7eea95be7a
fix(es/preset-env): Change order of passes
2022-04-02 06:57:17 +00:00
magic-akari
b793aa0200
feat(es/compat): Support more regex expressions ( #4205 )
2022-04-01 04:26:30 +00:00
Alexander Akait
634d732803
feat(es/ast): Add raw
to Str
( #4071 )
2022-03-22 07:54:08 +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
Austaras
502f934ce5
fix(es/preset-env): Move out finished proposals ( #3970 )
2022-03-11 16:02:05 +00:00
Donny/강동윤
7ebfcfa70f
fix(es/preset-env): Fix compilation issue ( #3972 )
2022-03-11 14:43:17 +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
Austaras
112f428734
feat(es/compat): Add pure comments for class fields keys ( #3939 )
2022-03-10 07:13:58 +00:00
magic-akari
c7f2bdb813
feat(es/compat): Implement loose mode for async_to_generator
( #3870 )
2022-03-05 19:32:59 +00:00
Austaras
6f076e4927
feat(es/transform): Unify logic for handling class properties ( #3766 )
2022-03-05 06:46:09 +00:00
Austaras
14155eb0e7
feat(es/compat): Implement loose mode for class_properties
( #3722 )
2022-02-27 00:09:02 +09:00
Donny/강동윤
e35d73adf4
chore(clippy): Improve config ( #3691 )
2022-02-23 06:07:42 +00:00
Donny/강동윤
b1d24702e3
refactor(preset-env): Extract common logic for browserslist
support ( #3674 )
2022-02-22 09:03:40 +00:00
Austaras
0f7a99787f
feat(es/compat): Add loose mode for classes
( #3474 )
2022-02-15 04:02:08 +00:00
Donny/강동윤
9b76783281
refactor(common): Cleanup & rustfmt ( #3495 )
...
swc_common:
- Merge identical source codes.
swc_css_parser:
- Deny `clippy::all`.
- Fix lints.
2022-02-09 06:33:32 +00:00
Sosuke Suzuki
d1c90a4e5f
feat(es/bugfix): Add bugfix-safari-id-destructuring-collision-in-function-expression
( #3109 )
2022-01-24 05:48:52 +00:00
Austaras
89235b8294
fix(es/compat): Apply static_blocks
before class_properties
( #3292 )
2022-01-17 13:20:02 +00:00
Donny/강동윤
357a350390
refactor(*): Cleanup ( #3274 )
2022-01-15 16:43:34 +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
Austaras
f58b50bea7
refactor(es/ast): Change types of member-like expressions ( #3178 )
...
swc_ecma_ast:
- Split `MemberExpr` into `MemberExpr` and `SuperPropExpr`.
- Use `Box<Expr>` for `MemberExpr.obj`.
- Use ad-hoc type for `MemberExpr.prop`.
- Use ad-hoc type for `SuperPropExpr.prop`.
- Use `Callee` instead of `ExprOrSpread` for `CallExpr`.
- Simplify types for meta property expressions.
2022-01-10 13:54:42 +00:00
Austaras
356082ad84
fix(es/utils): Fix handling of new.target
( #3145 )
2021-12-29 11:38:32 +00:00
magic-akari
7d125f5cdb
feat(es/preset-env): Add .js
to generated imports ( #3077 )
2021-12-20 09:15:04 +00:00
Sosuke Suzuki
7beaabd533
feat(es/preset-env): Add ES2022 features to preset-env
( #3072 )
2021-12-19 14:28:05 +00:00
Donny/강동윤
e48263b2f3
refactor(visit): Remove &dyn Node
from Visit
( #2984 )
...
swc_visit_macros:
- Remove `&dyn Node` from `Visit`.
- Implement `VisitWith<V>` for `[T]`.
2021-12-07 14:34:16 +09:00
Pig Fang
3302d1733a
refactor(es/preset-env): Avoid unnecessary unwrap
( #2943 )
2021-12-02 08:03:28 +00:00
Austaras
1555ceb8a3
feat(es/transforms/compat): Add loose mode to parameters
( #2911 )
...
swc_ecma_utils:
- Make `WrapperState` implement `Clone`.
swc_ecma_transforms_compat:
- `paramters`: Fix handling of non-loose mode. (Closes #2800 , Closes #2825 )
2021-12-02 01:04:01 +00:00
Pig Fang
8a55870ce5
feat(es/preset-env): Upgrade browserslist-rs
( #2927 )
2021-12-01 12:18:11 +00:00