How to ask Meteor build code for old nodejs : 0.10.4x


#1

The Wekan code that be built by Meteor cannot run in node 0.10.4x ,
Meteor will create the code for new version node, like const or lambda expression.
How to ask Meteor to build the code that can be run in node 0.10.4x ?

Error 1:
/home/wekan/output/bundle/programs/server/packages/modules.js:33433
const Boom = require(‘boom’);
^^^^^
SyntaxError: Use of const in strict mode.
at /home/wekan/output/bundle/programs/server/boot.js:292:30
at Array.forEach (native)
at Function..each..forEach (/home/wekan/output/bundle/programs/server/node_modules/underscore/underscore.js:79:11)
at /home/wekan/output/bundle/programs/server/boot.js:133:

Error 2:
/home/wekan/output/bundle/programs/server/packages/modules.js:33571
credentialsFunc(attributes.id, (err, credentials) => {
^Preformatted text
SyntaxError: Unexpected token >
at /home/wekan/output/bundle/programs/server/boot.js:292:30
at Array.forEach (native)
at Function..each..forEach (/home/wekan/output/bundle/programs/server/node_modules/underscore/underscore.js:79:11)
at /home/wekan/output/bundle/programs/server/boot.js:133:5


#2

node 0.x is unsupported and includes multiple security vulnerabilities. Is there a reason you’re still using it?


#3

One year ago I clone Wekan v0.10.1 (https://github.com/wekan, a Meteor app, current version is v0.47) and make a lot of changes, but this version Wekan is only run on node 0.10.4x, so I always build my Wekan app by Meteor v1.3.5.1 and run on node 0.10.46. Recently, this process is not work, the code that build by Meteor cannot run on node 0.10.46 anymore. I need some method to tell Meteor to build out the code that can run on node 0.10.4x.