Closed maxnowack closed 7 years ago
Maybe it's related to the node 4.8.4 patch:
Node 4.8.4 has been patched to include https://github.com/nodejs/node/pull/14829, an important PR implemented by our own @abernix (:tada:), which fixes a faulty backport of garbage collection-related logic in V8 that was causing occasional segmentation faults during Meteor development and testing, ever since Node 4.6.2 (Meteor 1.4.2.3). When Node 4.8.5 is officially released with these changes, we will immediately publish a small follow-up release. Issue #8648
https://github.com/meteor/meteor/blob/devel/History.md#v152-2017-09-05
I suspect this problem is actually due to the fact that standard-minifier-js
(a standard Meteor minififer configuration, uses uglify-js
under the hood. However, uglify-js
doesn't support all of the more modern ECMAScript language and fails. Meteor catches this failure and resorts to using babili
(now called "Babel minify") however it is often excessive in memory usage and much slower.
The good news is that uglify-es
is its successor and passes the test262 tests with much greater success, while still being quite fast. It is now the default in Meteor 1.6 (now in beta) thanks to https://github.com/meteor/meteor/pull/8698.
As a work around until Meteor 1.6 comes out, you can use abernix:standard-minifier-js
, which uses uglify-es
. Note that this is not an official recommendation, but I believe it will work for you.
I've removed standard-minifier-js
and added your package abernix:standard-minifier-js
, but the issue still persists :/
Can you fork https://github.com/abernix/minifier-js/ into your local packages
directory (as instructed here) and then add debug logging on this line (and elsewhere, as appropriate) to see if it's Babel that is getting run?
@abernix how do I log correctly inside build plugins? I've added some console.log
but nothing is getting logged. Here you'll find the file with the changes I've made: https://gist.github.com/maxnowack/db7c7d692ec09e87793554b85870c3c9
In an addition to that, the error occured also locally. So it seems, that it isn't an issue with the heroku buildpack but with meteor itself. So I've created meteor/meteor#9075
Type of problem
Summary
I've just upgraded to meteor v1.5.2. Now the build is failing
Contents of
.meteor/release
Buildpack version
Logs
Deployment target
heroku