Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skipping transpilation won't discourage minifying #157

Merged
merged 3 commits into from
Mar 14, 2023

Conversation

dfabulich
Copy link
Contributor

Here and elsewhere, we've seen arguments that this proposal will encourage users to skip minifying their code. (I think the argument is that since users are required to transpile, that will also encourage them to minify.)

The FAQ has an entry on this, but I wanted to elaborate on it, by pointing out that no popular transpiler minifies by default. Minification always requires a separate, non-default step.

Here and elsewhere, we've seen arguments that this proposal will encourage users to skip minifying their code. (I think the argument is that since users are required to transpile, that will also encourage them to minify.)

The FAQ has an entry on this, but I wanted to elaborate on it, by pointing out that no popular transpiler minifies by default. Minification always requires a separate, non-default step.
@Andrew-Cottrell
Copy link

Andrew-Cottrell commented Aug 11, 2022

FYI, the Closure Compiler transpiles modern JavaScript code to older versions of JavaScript (e.g. from ECMASCRIPT_2021 to ECMASCRIPT5) and minifies by default.

Aside: for the record, I disagree with the arguments that this proposal will encourage users to skip minifying their code, and I welcome your elaboration in this PR.

Copy link
Member

@ljharb ljharb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM tho; i agree that minification, which was done long before transpilers were considered remotely acceptable, will continue to be done even in a hypothetical future where transpilers don't exist.

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@littledan littledan merged commit d6e2557 into tc39:master Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants