-
-
Notifications
You must be signed in to change notification settings - Fork 224
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
Add option to ignore asm.js code #599
Comments
Are you using babili with babel-loader? you can ignore the files from the webpack config in that case. |
No, I'm running it with the babili cli command. I also only want to ignore part of a file - the asm.js functions (with the pragma "use asm"). The rest should be minified. |
We are working on the new CLI for babili which can help with this #507 Also, you can try with babel cli for now like this.
|
That will not help. I don't want to ignore a file, I want to ignore functions with the "use asm" pragma, as UglifyJS does. |
Does this also affect the babel-generator's output as well? Though Babili is a list of transformations, babel-generator |
Maybe Babel should stop doing everything except whitespace removal for minification, and leave all of the other optimizations to Babili. |
I'm wanting to minify a project which contains some Emscripten generated asm.js. As babili cannot safely minimise it and Emscripten already minimises the asm.js to a large extent, an option to ignore all code in an asm.js function would be very helpful.
Future work could selectively enable or disable transformations which are safe for asm.js, but for now a global switch would be great.
The text was updated successfully, but these errors were encountered: