Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
feat(webpack,cli): standalone build mode #4661
Types of changes
Results prove that there should be no big runtime diffs with the standalone mode. Still, we need to benchmark nuxt against real-world projects to decide on the default value.
@@ Coverage Diff @@ ## dev #4661 +/- ## ========================================== - Coverage 90.82% 90.79% -0.04% ========================================== Files 67 67 Lines 2223 2226 +3 Branches 543 545 +2 ========================================== + Hits 2019 2021 +2 - Misses 185 186 +1 Partials 19 19
In standalone mode, webpack will bundle all deps, but if 3rd party lib is using dynamic require, it may throw module not found error.
@aldarund I just mentioned this in PR body as an alternative option:
But I assume it is a soft breaking change. We can make