Skip to content

Commit

Permalink
[next.config.js] put polyfill first
Browse files Browse the repository at this point in the history
  • Loading branch information
MrOrz committed Feb 27, 2020
1 parent 7b0383d commit 03ce215
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down

0 comments on commit 03ce215

Please sign in to comment.