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
I see that the minified version of geopattern in this repository is <20kb.
But when I bundle geopattern using webpack, it increases the size of the bundle by around 36kb.
What could be going wrong here?
I am importing geopattern as import GeoPattern from 'geopattern'.
My package.json has only the vendor packages as dependencies.
PS - Sorry, I know this is not the best place to ask this question but I couldn't find anything else.
If I had to guess, webpack is including the buffer shim in the bundle. The Browserify build ignores Node's buffer module because it's an optional fallback that isn't necessary in the browser. There's a webpack issue that talks about excluding buffer. Maybe try that? And if that works, I'd love a PR to add webpack bundling instructions to the readme based on what you find! 💖
I see that the minified version of geopattern in this repository is <20kb.
But when I bundle geopattern using webpack, it increases the size of the bundle by around 36kb.
What could be going wrong here?
I am importing geopattern as
import GeoPattern from 'geopattern'
.My
package.json
has only the vendor packages as dependencies.PS - Sorry, I know this is not the best place to ask this question but I couldn't find anything else.
The text was updated successfully, but these errors were encountered: