Skip to content

Commit a99d10e

Browse files
committed
feat: Load regenerator-runtime explicitly. Should work wo babel-polyfill
1 parent f0b3454 commit a99d10e

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
"lockfile": "^1.0.3",
5353
"mkdirp": "^0.5.1",
5454
"mongodb-download": "^2.2.3",
55+
"regenerator-runtime": "^0.11.0",
5556
"tmp": "^0.0.33",
5657
"uuid": "^3.0.1"
5758
},

src/MongoMemoryServer.js

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import getport from 'get-port';
77
import Debug from 'debug';
88
import MongoInstance from './util/MongoInstance';
99

10+
require('regenerator-runtime/runtime'); // eslint-disable-line
1011
tmp.setGracefulCleanup();
1112

1213
export type MongoMemoryServerOptsT = {

src/util/MongoBinary.js

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import path from 'path';
77
import LockFile from 'lockfile';
88
import mkdirp from 'mkdirp';
99

10+
require('regenerator-runtime/runtime'); // eslint-disable-line
11+
1012
export type MongoBinaryCache = {
1113
[version: string]: string,
1214
};

src/util/MongoInstance.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
import { ChildProcess, spawn as spawnChild } from 'child_process';
55
import path from 'path';
66
import MongoBinary from './MongoBinary';
7-
87
import type { MongoBinaryOpts } from './MongoBinary';
98

9+
require('regenerator-runtime/runtime'); // eslint-disable-line
10+
1011
export type MongodOps = {
1112
// instance options
1213
instance: {

0 commit comments

Comments
 (0)