You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As described here #746 (comment)
Gatsby in webpack.config.js uses function as a parameter for minChunk option of commonsChunkPlugin. Inside the function is a tester isFramework.
The RegExp pattern in the tester does not test positively on Windows dev environment (different path separator), so gatsby build generates different bundles on my localhost (windows) and different on server. On localhost the packages of vendorModuleList are not moved to the commons bundle as they should (doesn't matter how often they occur in chunks).
The text was updated successfully, but these errors were encountered:
greglobinski
changed the title
isFramework in commonsChunkPlugin does not work propery on wndows
isFramework in commonsChunkPlugin does not work properly on windows
Feb 9, 2018
Description
gatsby build
creates different bundles on my localhost (windows) and different on server (Netlify).Environment
Gatsby version: 1.9.169
Node.js version: 8.7.0
Operating System: win 7
Actual result
As described here #746 (comment)
Gatsby in
webpack.config.js
uses function as a parameter for minChunk option of commonsChunkPlugin. Inside the function is a testerisFramework
.The
RegExp
pattern in the tester does not test positively on Windows dev environment (different path separator), sogatsby build
generates different bundles on my localhost (windows) and different on server. On localhost the packages of vendorModuleList are not moved to thecommons
bundle as they should (doesn't matter how often they occur in chunks).current state of the function
a small change in the RegExp pattern fixes the problem:
The text was updated successfully, but these errors were encountered: