Commit Graph

16 Commits

Author SHA1 Message Date
Austaras
9e636c7e58
refactor(es): Add visit_obj_and_computed macro () 2022-01-19 23:11:52 +09:00
Donny/강동윤
9a898951bc
fix(es/resolver): Ignore names of jsx attributes ()
swc_ecma_transforms_base:
 - Ignore names of jsx attributes. (Closes )
2022-01-17 16:18:07 +09:00
Donny/강동윤
2690742db0
refactor(es/transforms): Cleanup () 2022-01-15 15:36:40 +09:00
Donny/강동윤
978de5943e
chore(ci): Configure clippy () 2022-01-13 23:06:11 +09:00
Austaras
f58b50bea7
refactor(es/ast): Change types of member-like expressions ()
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
Donny/강동윤
913c82a2ab
fix(es/lints): Fix incorrect duplicate binding error ()
swc_ecma_transforms_base:
 - `resolver`: Fix resolving of `const` and `let`.

swc_ecma_lints:
 - `duplicate_bindings`: Don't mark ambient function declararions as a binding. (Closes )
2022-01-05 11:59:10 +09:00
David Sherret
517662c9c2
fix(es/visit): Make noop_visit_type visit typescript nodes that executes at runtime () 2022-01-05 08:47:25 +09:00
magic-akari
52961804d1
feat(es/codegen): Make the output for empty objects and empty statements pretty () 2022-01-03 05:54:58 +09:00
Donny/강동윤
43c8cda31a
fix(es/renamer): Fix renamer ()
swc_ecma_transforms_base:
 - `resolver`: Ignore named export with source.
 - `hygiene`: Ignore named export with source. (Closes , Closes )

swc_ecma_minifier:
 - Handle `export default` declarations as declaration instead of expressions. (Closes )
 - Don't override already-processed identifiers. (Closes )

swc_bundler:
 - Adjust the syntax context for named re-exports.
2021-12-29 13:44:48 +09:00
Austaras
38955c0c8d
refactor(es/ast): Change type or the key of ClassProp to PropName () 2021-12-15 16:21:30 +09:00
Donny/강동윤
e48263b2f3
refactor(visit): Remove &dyn Node from Visit ()
swc_visit_macros:
 - Remove `&dyn Node` from `Visit`.
 - Implement `VisitWith<V>` for `[T]`.
2021-12-07 14:34:16 +09:00
Donny/강동윤
1ea965cecb
fix(es/parser): Drop outdated options ()
swc_ecma_parser:
 - Drop flags in `EsConfig`.
 - Drop flags in `TsConfig`.
 - Drop unused variants from `SyntaxError`.
2021-12-05 17:33:34 +09:00
David Sherret
97df4cef80
refactor(es/parser): Remove import_assertions from TsConfig () 2021-12-05 05:43:41 +00:00
Donny/강동윤
7a6bf424c5
fix(es/transforms/base): Fix ts_resolver ()
swc_ecma_transforms_base:
 - `ts_resolver`: Hoist type aliases.
2021-11-21 16:31:12 +09:00
Donny/강동윤
9cd3d1610d
fix(es/transforms/base): Fix ts_resolver ()
swc_ecma_transforms_base:
 - `ts_resolver`: Hoist interface declarations.
2021-11-21 15:47:38 +09:00
Donny/강동윤
2b2f6955f2
refactor: Flatten ecmascript () 2021-11-10 19:00:54 +09:00