-
Notifications
You must be signed in to change notification settings - Fork 10
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
minifying issue / had to revert to standard minifier #28
Comments
Me too. Meteor: 2.5.3 Meteor packages:
Npm package:
|
I get a similar error after upgrading my app from Meteor 1.11.1 to 2.5.3. Oddly I get it while minifying
I tried upgrading I'm guessing the issue is the update to |
Having this exact same issue with |
Confirmed exact same issue with METEOR@2.6.1 |
Having this issue as well. Looks like it's related to (or is) babel/minify#556. It happens when some function in the code base has a parameter default value set to a constant: const foo = 42;
function processAnswer(answer = 42) {
// ...
} Meteor 2.7's standard-minifier-js package doesn't choke on this. In my case, I was able to track down the source (a couple functions in a new NPM library I'd added,
I got that too; I believe all NPM modules are concatenated into that file before being minified, so my guess is that the code that's tripping up Babel in your case is in an NPM library. |
Not to pile on, but I'm having the same issue - wildly it only happens in 1 of 6 very similarly structured apps, it complains about
but it clearly isn't just those modules that are a problem because when I tried to set up a repro with those modules + this minifier, it worked just fine, so there is for sure something else muddying the waters here |
Just in case anybody missed it, I created a PR (#31) that fixes the issue for me. |
@zodern Any chance that this could be fixed? |
#33 should fix these problems. |
Version 5 has been released. |
I had an issue recently with the minifier. Came up to the following error even though the minifying works with the classic standard-minifier-js
Unfortunately now we can't access Sourcemaps anymore so that's pity.
The only main difference with last working minifying was this package been added:
The text was updated successfully, but these errors were encountered: