mirror of
https://github.com/swc-project/swc.git
synced 2024-12-29 00:23:10 +03:00
b87ac646f8
**Description:** Previously it was impossible to minify non-strict code (e.g. `delete identifier;`) because `minify()` unconditionally parsed the input as a module regardless of the `module` setting. **BREAKING CHANGE:** `minify()` now respects the `module` parameter instead of ignoring it, so users who had been processing modules with `minify()` without passing `{ module: true }` will now need to pass it. **Related issue** - Closes #6130. Signed-off-by: Anders Kaseorg <andersk@mit.edu> |
||
---|---|---|
.. | ||
__tests__ | ||
benches | ||
e2e | ||
src | ||
tests | ||
.gitignore | ||
.npmignore | ||
jest.config.js |