Skip to content

Commit

Permalink
GH-40 Disable additional polyfills (as from Next.js 9.3 they should b…
Browse files Browse the repository at this point in the history
…e added when necessary)
  • Loading branch information
ciampo committed Mar 15, 2020
1 parent 0d30549 commit c6f2a60
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 20 deletions.
18 changes: 9 additions & 9 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,17 @@ const nextConfig = {
},
});

// From the 'with-polyfills' netx.js example.
const originalEntry = config.entry;
config.entry = async () => {
const entries = await originalEntry();
// // From the 'with-polyfills' netx.js example.
// const originalEntry = config.entry;
// config.entry = async () => {
// const entries = await originalEntry();

if (entries['main.js'] && !entries['main.js'].includes('./polyfills.js')) {
entries['main.js'].unshift('./polyfills.js');
}
// if (entries['main.js'] && !entries['main.js'].includes('./polyfills.js')) {
// entries['main.js'].unshift('./polyfills.js');
// }

return entries;
};
// return entries;
// };

return config;
},
Expand Down
11 changes: 0 additions & 11 deletions polyfills.js

This file was deleted.

0 comments on commit c6f2a60

Please sign in to comment.