-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
deno bundle minification #6900
Comments
Well, I suppose that this would be the tool to be used! It seems more fitting upon inspection, anyhow. I believe as long as its minification process does not come with a critical error that would ruin the code itself, it can grow alongside Deno, couldn't it? |
We already use |
This potentially could be considered now that we have moved over bundling to swc. |
minification is on the swc roadmap but not implemented yet |
Would be great to see minification for |
In the meantime, you may use
Other JavaScript minifiers (eg |
Sounds like a shortcut or alias can be made from that! @pierredewilde |
For information they're some work in swc for minify swc-project/swc#1302 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Please keep the information on topic. If you want to discuss esbuild under Deno, we have a discussion forum. |
Any update on this? |
If deno uses swc, and swc allows for config files to set things like minification, Is it possible to just expose that for configuring the |
Not really, as the way Deno interfaces with swc is not via a configuration file, but instead by directly interfacing to the Rust APIs, and the configuration is quite opinionated. That being said, it could be something that the wider community could contribute by adding a |
If this gets implemented, would you also add a |
|
Similar to how Deno uses a TypeScript compiler when running code, users should have the option when bundling to minify their compiled files for better performance. The argument after bundle could be
-m
or-minify
. We could see if the minifier would beuglify
, which from what I've heard is normally used withnpm
.Any thoughts?
The text was updated successfully, but these errors were encountered: