speed-measure-webpack-plugin icon indicating copy to clipboard operation
speed-measure-webpack-plugin copied to clipboard

general output time and modules with no loaders

Open daton89 opened this issue 5 years ago • 6 comments

during start i can see that modules with no loaders is the most expensive part but i have no more detail about that, which are the modules without loader?:

 SMP  ⏱
General output time took 31.27 secs

 SMP  ⏱  Plugins
Object took 0.016 secs
ProvidePlugin took 0.001 secs

 SMP  ⏱  Loaders
modules with no loaders took 15.96 secs
  module count = 6838
babel-loader took 4.42 secs
  module count = 107
css-loader took 2.26 secs
  module count = 16
underscore-template-loader took 1.11 secs
  module count = 24
json-loader took 0.636 secs
  module count = 2
file-loader took 0.151 secs
  module count = 11
style-loader, and
css-loader took 0.012 secs
  module count = 5

during reload my worst loading time comes from general output time:


 SMP  ⏱
General output time took 6.079 secs

 SMP  ⏱  Plugins
Object took 0.005 secs
ProvidePlugin took 0 secs

 SMP  ⏱  Loaders
babel-loader took 0.294 secs
  module count = 1

what does it mean? is it the time spent to compile my own code? how can i figure out the optimization for this?

daton89 avatar Nov 08 '18 00:11 daton89

same question

zk2401 avatar Dec 20 '18 02:12 zk2401

+1

katherinebernstein avatar Jan 16 '19 02:01 katherinebernstein

Hey :smile: Sorry for the very late response

"modules without loaders" basically just means vanilla JS files, which webpack can handle out of the box.

As for the "general output time" on the reload, this tends to be generally down to webpack reading in from the file-system, but it's hard to say - it'll be very repo specific!

Where would you all look for information on this? Would a link to a README doc or something, just under the "modules with no loaders" description?

stephencookdev avatar Jan 19 '19 17:01 stephencookdev

@daton89 Try playing with the devtool property, set it eval to see if you see any significant change, if so read Webpack's docs and try the other, less cheap, options

dutzi avatar Sep 10 '19 00:09 dutzi

Looks like this has been answered in the Readme, and can probably be closed?

IanVS avatar Jul 14 '20 03:07 IanVS

@daton89 Try playing with the devtool property, set it eval to see if you see any significant change, if so read Webpack's docs and try the other, less cheap, options

this is insane!!! this made a significant change! but why?? 💯

akoushke avatar Mar 10 '21 01:03 akoushke