minify: Bug: transform code to unsafe code
This lib will transform this code typeof(a) !== 'undefined' to (a)!==void 0, when βaβ is not defined, will introduce JS error.
About this issue
- Original URL
- State: closed
- Created 9 months ago
- Reactions: 2
- Comments: 20 (20 by maintainers)
Commits related to this issue
- feature: @putout/plugin-minify: types: no transform when not declared (coderaiser/minify#114) — committed to coderaiser/putout by coderaiser 9 months ago
- feature: package: @putout/plugin-minify v5.0.0 (coderaiser/minify#114) — committed to putoutjs/minify by coderaiser 9 months ago
- feature: @putout/minify: add ability to disable mangle (coderaiser/minify#114) — committed to putoutjs/minify by coderaiser 9 months ago
- docs: readme: mangle (#114) — committed to coderaiser/minify by coderaiser 9 months ago
- fix(deps): Bump putout from 32.0.6 to 32.2.2 (#172) Bumps [putout](https://github.com/coderaiser/putout) from 32.0.6 to 32.2.2. <details> <summary>Release notes</summary> <p><em>Sourced from <a href=... — committed to relaycorp/eslint-config by dependabot[bot] 9 months ago
- feature: @putout/engine-loader: parse-ruels: tuple of two elements: boolean (coderaiser/minify#114) — committed to coderaiser/putout by coderaiser 8 months ago
- fix: @putout/minify: mangle (coderaiser/minify#114) — committed to putoutjs/minify by coderaiser 8 months ago
It works fine since yesterday. I think we can close this issue and may it never return.
Thanks, for now it looks good. But let me confirm again tomorrow just to make sure that the bug is killed for good π
Just landed an update π, please re-install Minify, is it works for you?
Ok, so that means refresh Deno cache:
deno run -r main.tsIt works nice, thanks.
Just landed support of option
mangle, now you can disable all mangle π . Please re-install Minify, is it works for you?Just fixed π. Please re-install Minify, is it works for you?
You should be extremely careful with mangling code man. Please refer this case if you wish to improve it: https://code.visualstudio.com/blogs/2023/07/20/mangling-vscode