From 26b718ba1ffd7889b9f620f7007228c192586f68 Mon Sep 17 00:00:00 2001 From: Matteo Pagliazzi Date: Mon, 11 Apr 2016 20:03:44 +0200 Subject: [PATCH] fix(build) require babel-polyfill in production too --- website/src/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/website/src/index.js b/website/src/index.js index d34857267d..24dbc21384 100644 --- a/website/src/index.js +++ b/website/src/index.js @@ -4,9 +4,11 @@ // In production, the es6 code is pre-transpiled so it doesn't need it if (process.env.NODE_ENV !== 'production') { require('babel-register'); - require('babel-polyfill'); } +// The BabelJS polyfill is needed in production too +require('babel-polyfill'); + // Only do the minimal amount of work before forking just in case of a dyno restart const cluster = require('cluster'); const nconf = require('nconf');