From aabddac2abcf98624a195bf6e34636568cc832da Mon Sep 17 00:00:00 2001 From: tobs Date: Tue, 25 Sep 2018 08:03:34 +0100 Subject: [PATCH] fixed production build issue on node dist --- package.json | 1 + src/index.js | 3 +++ 2 files changed, 4 insertions(+) diff --git a/package.json b/package.json index 2bde82d5..1b94b34c 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,7 @@ "devDependencies": { "babel-cli": "^6.9.0", "babel-core": "^6.9.0", + "babel-polyfill": "^6.26.0", "babel-preset-es2015": "^6.9.0", "babel-preset-stage-0": "^6.5.0", "eslint": "^3.1.1", diff --git a/src/index.js b/src/index.js index 5d6f3855..76eb6193 100755 --- a/src/index.js +++ b/src/index.js @@ -1,3 +1,6 @@ +require('babel-core/register'); +require('babel-polyfill'); + import http from 'http'; import express from 'express'; import cors from 'cors';