Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use require for optional module imports
Webpack issues a warning when trying to import() a module that is not present, whereas it does not do so — or at least, not in a way that blocks Next.js from building the app — with require(). Since we're requiring a bundler anyway (since we're using npm package names rather than import paths), we're not any worse off using a non-standard module system for these. For more info, see: webpack/webpack#7713
- Loading branch information