Commit Graph

23 Commits

Author SHA1 Message Date
Donny/강동윤
80ed69d67d
chore(build): Disable LTO for local builds () 2022-02-10 17:35:15 +09:00
Donny/강동윤
9b76783281
refactor(common): Cleanup & rustfmt ()
swc_common:
 - Merge identical source codes.

swc_css_parser:
 - Deny `clippy::all`.
 - Fix lints.
2022-02-09 06:33:32 +00:00
Donny/강동윤
8bf5cf4d03
chore(es): Fix clippy warnings () 2022-02-08 19:50:22 +09:00
Donny/강동윤
357a350390
refactor(*): Cleanup () 2022-01-15 16:43:34 +09:00
Donny/강동윤
15b604b6d6
refactor(*): Fix some clippy warnings () 2022-01-14 07:20:45 +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
Austaras
cdb46cfb91
fix(es/hygiene): Visit computed properties in usage analyzer () 2022-01-09 15:42:19 +09:00
Sosuke Suzuki
432f877790
feat(es/ast): Use ModuleExportName for ExportNamespaceSpecifier () 2022-01-06 20:19:11 +09:00
Sosuke Suzuki
07c0489575
feat(es/ast): Add ModuleExportName ()
swc_ecma_ast:
 - Allow using string as import/export specifiers.
2022-01-03 08:44:11 +00: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/강동윤
8a1016fb40
refactor(bundler): Improve test suite () 2021-12-29 19:19:44 +09:00
Donny/강동윤
a81661c74a
perf(es/hygiene): Fix performance bug ()
swc_ecma_transforms_base:
 - `hygiene`: Skip checking a symbol if we are sure that it will be discarded.

swc_ecma_laoder:
 - Optimize `NodeModulesResolver` by trying `.js` first.
2021-12-21 23:52:13 +09:00
Donny/강동윤
0e4dce694d
refactor(es/minifier): Use swc_timer ()
swc_bundler:
 - Add `Config.disable_fixer`.
 - Add `Config.disable_hygiene`.

swc_ecma_minifier:
 - Use `swc_timer`.
2021-12-21 18:19:33 +09:00
magic-akari
d5c7fb898f
fix(es/loader): Support fully-specified ESM import specifiers () 2021-12-16 11:37:22 +00: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
67280b6fb0
fix(es/typescript): Run resolver before typescript::strip ()
swc_ecma_transforms_base:
 - `resolver`: Handle some typescript nodes.

swc_ecma_transforms_typescript:
 - `strip`: Use identifier span hygiene information for stripping types.
2021-12-04 02:35:16 +00:00
David Sherret
beb2c73c2c
fix(swc/hygiene): Prefer not renaming top level variables ()
swc_ecma_transforms_base:
 - `hygiene`: Use concept of depth to prevent renaming top level nodes.
2021-12-04 01:55:27 +09:00
David Sherret
4d993c26b6
fix(es/hygiene): Reduce renaming ()
swc_ecma_transforms_base:
 - `hygiene`: Treat class methods and constructors as a scope.
2021-12-02 07:28:09 +00:00
Donny/강동윤
24de5507ae
fix(bundler): Use interop for common js dependencies ()
swc_bundler:
 - Update helpers to use interop for common js deps. (Closes )
2021-12-01 19:53:06 +09:00
erdmko
c8de935560
fix(bundler): Ignore require of external modules ()
swc_bundler:
 - Check for external modules for `require` calls`. (Closes )
2021-11-23 18:03:29 +09:00
Donny/강동윤
687305f280
refactor: Flatten crates () 2021-11-09 20:42:49 +09:00