Closed harrycollin closed 3 years ago
I can reproduce this when running yarn build
and serving the directory.
@harrycollin do you think it's related to React in any way? Do you experience slow build times using harp.gl
without React?
@harrycollin ok, this makes sense. Does the browserlist fix help? If so, I think I can include it in this example repo to fix the build performance issue.
@harrycollin I've only done an initial test and it does appear to work. Hopefully this is the solution!
@harrycollin that's weird. I already have this in the package.json
. It doesn't look like it works. Does it?
@mkalygin is your app using create-react-app or babel to transpile the code? if this is the case try to add the following snippet to the package.json of your app
"browserslist": {
"production": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
@mkalygin I used this exact snippet and it worked much better.
Ok, thanks @harrycollin @robertoraggi. I've fixed package.json
in https://github.com/slaylines/harp.gl-react-example/commit/6dbdf5a84d2439be499f1a5e32478124f9cbc4f4. I'm closing this issue. Let me know if I can help in any way.
I've noticed after building the app there are huge performance problems. I initially noticed this on my own app but came back here as I used this as an initial reference a long time ago. It appears to have happened since upgrading from harp 0.14.0. What do you think is going wrong?