mirror of
https://github.com/swc-project/swc.git
synced 2024-11-27 13:38:33 +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> |
||
---|---|---|
.. | ||
env | ||
minify | ||
parse | ||
spack | ||
transform | ||
dynamic_tsx.mjs | ||
error_test.mjs | ||
import_test.js | ||
is_module_unknown_test.js | ||
minify_test.mjs | ||
module_test.js | ||
paths_test.mjs | ||
plugin_test.mjs | ||
preserve_comments.mjs | ||
script_test.js |