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
Just did a few tests with webpack 4 (4.0.0-beta.1):
dist (production and no flow-runtime): » 278Kb » 259Kb (at the time of this writing, I hadn't commited a dist production build without flow-runtime. Size was around 450Kb.)
browser (dev with source-map): 3.36Mb » 3.24Mb
umd/editor (dev with source map): 3.1Mb (update: 2.83Mb without targeting electron 😨) » 2.96 Mb (need to update this for v4 without that option as well)
Browser notes (bundle analyze addon):
node_modules total (parsed) size is 2.18Mb
flow-runtime (parsed) is close to 850Kb in dev.
matter-js (parsed) is close to 800Kb in dev.
I'll also create a production build for UMD as well. It makes sense to do so 👍
The text was updated successfully, but these errors were encountered:
Seems that a production build (UMD) minified with [email protected] shrinks to 205 Kb 💯 But there are still some issues with ES6 I guess... Still trying to figure that out.
For some reason it fails to json.stringify objects within game objects (inspector related).
Ah ok, it seems mangling (uglifying variables names - e.g., xptoVariable to x) is the reason.
I'm guessing it's because inspector searches for functions with string patterns based on the variable name, and thus not finding them and breaking everything 😨
@joafalves Is this last assumption correct? Not sure we can do much here since we rely on that.
Without mangling, but working correctly, the size is shrunk to 331Kb. Also not bad 👍
And actually, uglifyjs-webpack-plugin (v.1.1.8) has that mangle option, so I'll be using that one for now. Webpack v4 should have it by default.
Though it's changing class names and raising some errors within the editor, the inspector works just fine. Related to propertyEditorHandlerCtrl and propertyEditorCtrl.
Just did a few tests with webpack 4 (4.0.0-beta.1):
Browser notes (bundle analyze addon):
I'll also create a production build for UMD as well. It makes sense to do so 👍
The text was updated successfully, but these errors were encountered: