Hello,
I have a problem, I’ve imported a new package in my project and it seems to be the first (for me) that uses the spread operator as arguments in a arrow function declaration.
/mnt/sda3/www/…/src/node_modules/nodemailer/lib/mailer/index.js:31
W20170415-21:04:48.736(3)? (STDERR) compile: [(…args) => this._convertDataImages(…args)],
W20170415-21:04:48.736(3)? (STDERR) ^^^
I tried installing all babel plugins I could find related to it, ofc didn’t worked or else I would be here. I only found a similar bug but was fixed in meteor 1.3
The package has a node >=6 dependency from what I can see.
Meteor 1.4.4.1
abernix:standard-minifier-js 1.3.19 Standard javascript minifiers used with Meteor apps by default.
ecmascript 0.7.3 Compiler plugin that supports ES2015+ in all .js files
es5-shim 4.6.15 Shims and polyfills to improve ECMAScript 5 support
meteor-base 1.0.4 Packages that every Meteor app needs
seba:minifiers-autoprefixer 1.0.1 Standard minifiers used with Meteor apps by default + css
├── babel-cli@6.24.1
├── babel-plugin-transform-es2015-destructuring@6.23.0
├── babel-plugin-transform-es2015-parameters@6.24.1
├── babel-plugin-transform-object-rest-spread@6.23.0
├── babel-preset-env@1.4.0
├── babel-preset-es2016@6.24.1
├── babel-preset-es2017@6.24.1
├── babel-preset-meteor@6.26.0
├── babel-preset-react@6.24.1
├── babel-preset-stage-0@6.24.1
├── babel-preset-stage-2@6.24.1
├── babel-runtime@6.23.0
├── meteor-babel@0.14.4
.babelrc (I tried more combinations, this is the final I give up version)
{
"presets": [
"meteor",
"react",
"es2015",
"es2016",
"es2017",
"stage-0"
],
"plugins": [
"babel-plugin-transform-es2015-parameters",
"transform-function-bind",
"babel-plugin-transform-object-rest-spread",
"transform-es2015-destructuring"
],
"retainLines": true
}