Commit Graph

8 Commits

Author SHA1 Message Date
James Burgess
fbea42ca7c Replace generic bundle names with arch names in bundle-visualizer (#10021) 2018-06-22 16:46:34 -04:00
Ben Newman
0765927393 Let bundle-visualizer tolerate WebAppInternals.staticFilesByArch. 2018-04-29 10:20:12 -04:00
Ben Newman
9a391d9b04 Fix #9428 by registering dynamic-import HTTP endpoint earlier. (#9465) 2017-12-12 17:27:41 -05:00
Ben Newman
95d093a17a Use /__meteor__/bundle-visualizer/stats URL for bundle-visualizer stats. 2017-12-01 18:28:43 -05:00
Ben Newman
2482fac274 Make bundle-visualizer JSON stats more readable in dev tools. 2017-11-22 13:17:54 -05:00
Ben Newman
d0566bbb18 Make bundle-visualizer use HTTP instead of Meteor.call.
If you're trying to visualize the bundle of an application that does not
use ddp-client, it's annoying if bundle-visualizer pulls in all those
dependencies just to support itself.

cc @abernix
2017-11-17 13:11:20 -05:00
Jesse Rosenberger
79b1075ede Remove check for standard-minifier-js@2.1.x from bundle-visualizer.
While this was helpful in one of the incarnations of the
bundle-visualizer during development it isn't relevant anymore since
the `.stats.json` will not be present in the bundle unless it was
created by a recent version of `standard-minifier-js` which passed
in `stats` (no older versions did this).

Removing this check will also make it possible for other minifiers to be
used with `bundle-visualizer` without them also needing to fork make
their own version.
2017-06-09 19:32:09 +03:00
Jesse Rosenberger
a5a3611de8 New bundle-visualizer package for analyzing initial client bundles.
This package is required to be ran with `--production` in order to for
it to accurately use data from the minifier which is only provided when
emulating or actually in production.  The additional work required in
this mode is too costly to run during normal development as the
minification process (provided by UglifyJS, one of the fastest
minifiers) is still quite slow.

Once added, this package will display a sundial chart showing the weight
of the modules included in the application, in the web-browser, on top
of your existing application.

While maybe not the best final product, it's certainly something we can
iterate on and improve.

This package should be removed before bundling/deploying for production.
2017-05-11 01:16:59 +03:00