swc_ecma_codegen:
- Fix source map of string literals. (#2253)
swc_ecma_transforms_typescript:
- Allow using same name for a module with function. (#2243)
swc_ecma_transforms_compat:
- Fix `this` in class properties. (#2228)
swc_ecma_transforms_typescript:
- Handle `import =` correctly. (#2234)
- Ensure that #1653 is not the case anymore. (#1653)
swc:
- Ensure that #2232 is not the case. (#2232)
swc_ecma_loader:
- `TsConfigResolver`: Use `baseUrl`. (#2050)
swc:
- Change type of `JscConfig.base_url` to `PathBuf`.
testing:
- Improve `NormalizedOutput::compare_to_file`.
swc_ecma_parser:
- Don't panic on `typeof import(T)`. (#2198)
- Fix parsing of ternary. (#2196)
swc_ecma_transforms_base:
- `fixer`: Handle unary in lhs of an exponentation expression. (#2191)
swc_ecma_transforms_compat:
- Use variable for `this` in arrow expressions. (#2212)
swc_ecma_visit:
- Add a trait `InjectVars`.
node_swc:
- Increease recursion limit while deserializing. (#2223)
swc_ecma_parser:
- Fix parsing of complex arrow expressions in a conditional expression. (#2174)
- Report an error for wrong jsx, instead of `panic!`. (#2173)
swc_ecma_transforms_react:
- `jsx`: Handle fragment with single child correctly. (#2177)
swc:
- Ensure that #2170 is an invalid issue. (#2170)
swc_ecma_minifier:
- Enable some sequential merging if `collapse_vars` is set.
- Enable sequential merging for top level items.
- `if_return`: Don't inject `void` if it's not exact function body. (#2072)
- `sequences`: Add some condition for aborting. (#2078)
swc_ecma_utils:
- Add `collect_decls`.
- Add `collect_decls_with_ctxt`.
swc_ecma_transforms_optimization:
- `inline_globals`: Don't replace if a binding exists. (#1294)
swc_ecma_parser:
- Fix panic from span assertion. (#2040)
swc_ecma_transforms_compat:
- Fix handling of `await for`. (#1918)
swc_ecma_transforms_base:
- Allow using decorator metadata even if `reflect-metadata` is not imported. (#1362)
swc_ecma_transforms_base:
- `resolver`: Handle constructor properties correctly. (#2021)
swc_ecma_transforms_compat:
- `block_scoping`: Handle arrows in loops. (#2027)
- `block_scoping`: Handle nested for loops with function between them. (#2027)
- `regenerator`: Handle rhs of `||` correctly. (#2024)
swc:
- Add a test for #1734. (#1734)
swc_common:
- Add `Span.has_mark`.
swc_ecma_codegen:
- Emit `1e3` for `1000`.
- Optimize output. (#1986)
swc_ecma_minifier:
- name mangler: Don't use keywords as an id.
- `properties`: Optimize member expression with string properties.
- `inline`: Inline some function expressions even if it's not fn-local.
- `analyzer`: Track reassignment correctly.
- `analyzer`: Track fn-local correctly.
- `sequences`: Inject `void` if required.
- `inline`: Inline function declarations correctly.
- `sequences`: Merge expressions into test of if statements.
- `sequences`: Reduce calls to an assigned variable.
- Use `Marks` instead of `&dyn Comments`.
swc_ecma_transforms_optimization:
- `expr_simplifier`: Fix infinite loops.
node/swc:
- Ensure that `.transform` performs minification. (#1989)