From 03ce2158b4d6ec5e4245240892d0cbea2af044e7 Mon Sep 17 00:00:00 2001 From: MrOrz Date: Thu, 27 Feb 2020 14:30:37 +0800 Subject: [PATCH] [next.config.js] put polyfill first --- next.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/next.config.js b/next.config.js index 964e6e07..e3ca6bce 100644 --- a/next.config.js +++ b/next.config.js @@ -38,7 +38,7 @@ module.exports = { if (entry['main.js'] && !entry['main.js'].includes('core-js')) { // As specified by React official doc // https://reactjs.org/docs/javascript-environment-requirements.html - entry['main.js'].push('core-js'); + entry['main.js'].unshift('core-js'); } return entry; };