As mentioned in #867 (comment) and #627 (comment), it sounds possible to use Webpack universally. There's e.g the universal-webpack package which might help, and this article gives some tips and an example.
If it can be done efficiently, having a universal Webpack sounds like a great way to reduce the complexity of the Next.js codebase and would allow users to load any Webpack plugin they need?
What's Next.js' team's opinion on this, does it make sense and should it be investigated?
As mentioned in #867 (comment) and #627 (comment), it sounds possible to use Webpack universally. There's e.g the
universal-webpackpackage which might help, and this article gives some tips and an example.If it can be done efficiently, having a universal Webpack sounds like a great way to reduce the complexity of the Next.js codebase and would allow users to load any Webpack plugin they need?
What's Next.js' team's opinion on this, does it make sense and should it be investigated?