# ChangeLog: v1.3.85

* [CHANGELOG.md](https://github.com/swc-project/swc/blob/01fefd32f7e3017de8e9c679e6ab230d75ea55e1/CHANGELOG.md#1385---2023-09-15)
    
* [Full ChangeLog](https://github.com/swc-project/swc/milestone/442?closed=1)
    

---

## `minify()` now support scripts

* PR: [https://github.com/swc-project/swc/pull/7943](https://github.com/swc-project/swc/pull/7943)
    

The JavaScript API of `minify()` had `module: bool` for a long time, but the swc minifier didn't respect it. It's now fixed, and it's now respected.

## An option to configure module resolver

* PR: [https://github.com/swc-project/swc/pull/7945](https://github.com/swc-project/swc/pull/7945)
    

```json
{
    "jsc": {
        "parser": {
            "syntax": "typescript"
        },
        "target": "es2020",
        "baseUrl": ".",
        "paths": {
            "@print/a": [
                "./packages/a/src/index.ts"
            ]
        }
    },
    "module": {
        "type": "commonjs",
        "resolveFully": true
    }
}
```

`jsc.module.resolveFully` is added to various module types to support resolving dependencies with `/index.js` included.

## Optimization for optional chaining

* PR: [https://github.com/swc-project/swc/pull/7933](https://github.com/swc-project/swc/pull/7933)
    

Now the `optional-chaining` pass works just like `pure_getters` are enabled.

## Optimization for static blocks

* PR: [https://github.com/swc-project/swc/pull/7944](https://github.com/swc-project/swc/pull/7944)
    

```javascript
class Foo {
  static x = 1;
}
```

was compiled as, which is not ideal. It's now

```javascript
class Foo {
}
Foo.x = 1;
```
