Commit Graph

16 Commits

Author SHA1 Message Date
Donny/강동윤
24179bd9be
fix(webpack/ast): Handle typescript ()
swc_webpack_ast:
 - Add `proces_file`.
 - Add support for typescript.
2021-12-15 18:33:35 +09:00
Donny/강동윤
15ea98bf65
fix(webpack/ast): Fix webpackAST ()
swc_webpack_ast:
 - `reducer`: Flatten safe statements.
 - `reducer`: Preserve variables.
2021-12-14 17:28:51 +09:00
Donny/강동윤
4cf58528df
fix(webpack/ast): Fix webpackAST ()
swc_estree_ast:
 - Fix more serialization.

swc_estree_compat:
 - Consider multi-byte characters.

swc_webpack_ast:
 - Preserve LHS of assignments if required.
2021-12-08 19:53:43 +09:00
Donny/강동윤
74363e0357
fix(webpack/ast): Preserve span () 2021-12-04 23:24:18 +09:00
Donny/강동윤
2a01dd4b32
fix(webpack/ast): Reduce if statements () 2021-12-04 19:28:18 +09:00
Donny/강동윤
c346f12b32
fix(estree): Fix serialization of ObjectMethod ()
swc_estree_ast:
 - Fix serialization of `ObjectMethod` for `acorn`.

swc_webpack_ast:
 - `ast_reducer`: Remove unused getter/setter properties.
2021-12-03 23:14:12 +09:00
Donny/강동윤
4008a65b1e
fix(webpack/ast): Preserve more arguments of define calls () 2021-12-03 21:22:38 +09:00
Donny/강동윤
eda514bcc5
fix(webpack/ast): Fix amd support ()
swc_webpack_ast:
 - `ast_reducer`: Preserve array literals in `define` calls.
2021-12-03 20:51:48 +09:00
Donny/강동윤
1eb62dc201
fix(webpack/ast): Remove more string literals () 2021-12-03 18:54:28 +09:00
Donny/강동윤
4539b3a610
fix(webpack/ast): Don't remove comparison of process.env.NODE_ENV () 2021-12-01 23:18:19 +09:00
Donny/강동윤
667dd1e95e
fix(webpack/ast): Fix ast reducer ()
swc_webpack_ast:
 - Preserve string literals in `require`
2021-12-01 21:54:55 +09:00
Donny/강동윤
9f5fc11a8f
fix(webpack/ast): Fix handling of define ()
swc_webpack_ast:
 - Support `define` calls with `require` .
2021-12-01 21:25:46 +09:00
Donny/강동윤
18d9fd91f9
fix(webpack/ast): Fix span of null literals ()
swc_webpack_ast:
 - Preserve original spans for injected `null` literals
2021-12-01 15:31:56 +09:00
Donny/강동윤
854b598e94
fix(webpack/ast): Improve ast reducer () 2021-11-30 18:16:05 +09:00
Donny/강동윤
32b68ef5d0
fix(webpack/ast): Fix ast reducer ()
swc_webpack_ast:
 - Implement more rules.
 - Test using typescript test suites.
2021-11-30 10:04:08 +09:00
Donny/강동윤
c2bbdbe9d6
feat(webpack): Add ast reducer ()
swc_estree_compat:
 - Fix stack overflow related to object patterns.

swc_webpack_}ast:
 - Implement AST reducer.
2021-11-26 15:04:41 +09:00