-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Override babel compact option? #6
Comments
This is an issue with Babel itself. You'll have to open an issue over there: https://phabricator.babeljs.io/ |
The babel folks have already said they will not support runtimes that lack console.
i was hoping you could allow babel options to be passed in from this gem. for example. Adding these lines to my _config.yml
and then capture those options and pass them to the transform command in the jekyll-babel gem
This worked fine for me. If you think this is in scope I'll send you a PR. Let me know |
I have the same issue that @primerano had... Would be awesome if his solution could be merged... EDIT: Btw I've implemented in my fork, @primerano's solution and worked fine for me as well. |
Currently this gem runs with the default babel setting of
compact "auto"
The problem with this is when a js file exceeds 100k it logs an error to console
` if (format.compact === "auto") {
format.compact = code.length > 100000; // 100KB
but since there is no console, the call to error fails and processing stops. (seems like an info message but since there is no console the point is moot)
If I could set compact to true my processing would complete.
The text was updated successfully, but these errors were encountered: