diff --git a/meteor b/meteor index b9e19f6103..ca896a086d 100755 --- a/meteor +++ b/meteor @@ -1,6 +1,6 @@ #!/bin/bash -BUNDLE_VERSION=0.4.31 +BUNDLE_VERSION=0.4.32 # OS Check. Put here because here is where we download the precompiled # bundles that are arch specific. diff --git a/scripts/dev-bundle-tool-package.js b/scripts/dev-bundle-tool-package.js index ab85af680d..bff04e4eea 100644 --- a/scripts/dev-bundle-tool-package.js +++ b/scripts/dev-bundle-tool-package.js @@ -21,7 +21,8 @@ var packageJson = { version: "0.0.0", dependencies: { fibers: fibersVersion, - "meteor-babel": "0.1.12", + "meteor-babel": "0.2.1", + "meteor-promise": "0.2.2", // Not yet upgrading Underscore from 1.5.2 to 1.7.0 (which should be done // in the package too) because we should consider using lodash instead // (and there are backwards-incompatible changes either way). diff --git a/tools/main-transpile-wrapper.js b/tools/main-transpile-wrapper.js index 9700d9841f..6a6aa1b6e5 100644 --- a/tools/main-transpile-wrapper.js +++ b/tools/main-transpile-wrapper.js @@ -3,9 +3,13 @@ require('meteor-babel/register'); // #RemoveInProd this line is removed in isopack.js +// Install a global ES6-compliant Promise constructor that knows how to +// run all its callbacks in Fibers. +global.Promise = require("meteor-promise"); + // Include helpers from NPM so that the compiler doesn't need to add boilerplate // at the top of every file -require("meteor-babel").runtime(); +require("meteor-babel").installRuntime(); // Installs source map support with a hook to add functions to look for source // maps in custom places