Upgrade meteor-babel and install meteor-promise to polyfill Promise.

This commit is contained in:
Ben Newman
2015-06-24 16:35:04 -04:00
parent 891d7a9e1b
commit 9b5ffcabde
3 changed files with 8 additions and 3 deletions

2
meteor
View File

@@ -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.

View File

@@ -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).

View File

@@ -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