Skip to content

Commit

Permalink
feat: Load regenerator-runtime explicitly. Should work wo babel-polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
nodkz committed Aug 16, 2017
1 parent f0b3454 commit a99d10e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"lockfile": "^1.0.3",
"mkdirp": "^0.5.1",
"mongodb-download": "^2.2.3",
"regenerator-runtime": "^0.11.0",
"tmp": "^0.0.33",
"uuid": "^3.0.1"
},
Expand Down
1 change: 1 addition & 0 deletions src/MongoMemoryServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import getport from 'get-port';
import Debug from 'debug';
import MongoInstance from './util/MongoInstance';

require('regenerator-runtime/runtime'); // eslint-disable-line
tmp.setGracefulCleanup();

export type MongoMemoryServerOptsT = {
Expand Down
2 changes: 2 additions & 0 deletions src/util/MongoBinary.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import path from 'path';
import LockFile from 'lockfile';
import mkdirp from 'mkdirp';

require('regenerator-runtime/runtime'); // eslint-disable-line

export type MongoBinaryCache = {
[version: string]: string,
};
Expand Down
3 changes: 2 additions & 1 deletion src/util/MongoInstance.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
import { ChildProcess, spawn as spawnChild } from 'child_process';
import path from 'path';
import MongoBinary from './MongoBinary';

import type { MongoBinaryOpts } from './MongoBinary';

require('regenerator-runtime/runtime'); // eslint-disable-line

export type MongodOps = {
// instance options
instance: {
Expand Down

0 comments on commit a99d10e

Please sign in to comment.