-
Notifications
You must be signed in to change notification settings - Fork 17
Description
Right now, with Meteor 1.4.x apps, you can use meteor-spk 0.3.0 and have great success. In the future, when Meteor switches to node 6, I believe the current strategy of meteor-spk embedding a nodejs binary is going to be bad news.
Context: Our current backwards-compatibility situation
If you try to use a meteor 1.4.x app with meteor-spk 0.1.8, you see an error message like this:
AssertionError: "undefined" === "function"
at wrapPathFunction (/programs/server/mini-files.js:77:10)
at Object.<anonymous> (/programs/server/mini-files.js:108:24)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/programs/server/boot.js:9:13)
at Module._compile (module.js:456:26)
Proposal
Can meteor-spk extract the nodejs binaries out of the current Meteor app's Meteor bundle, rather than embedding a particular node version?
This has the upside that it will be automatically forwards-compatible when Meteor switches versions of node.
It also has the upside that such a meteor-spk version would be backwards-compatible -- I could use that meteor-spk with Meteor 1.3.x apps as well as 1.4.x apps. That would address one pain-point I'm seeing with regard to the vagrant-spk transition explained here: sandstorm-io/vagrant-spk#193