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
and you're done! SMP will now be printing timing output to the console by default
57
+
56
58
## Options
57
59
58
60
Options are (optionally) passed in to the constructor
@@ -87,3 +89,17 @@ Type: `Boolean`<br>
87
89
Default: `false`
88
90
89
91
If truthy, this plugin does nothing at all. It is recommended to set this with something similar to `{ disable: !process.env.MEASURE }` to allow opt-in measurements with a `MEASURE=true npm run build`
92
+
93
+
### `options.granularLoaderData`_(experimental)_
94
+
95
+
Type: `Boolean`<br>
96
+
Default: `false`
97
+
98
+
If truthy, this plugin will attempt to break down the loader timing data to give per-loader timing information.
99
+
100
+
Points of note that the following loaders will have inaccurate results in this mode:
101
+
102
+
* loaders using separate processes (e.g. `thread-loader`) - these make it difficult to get timing information on the subsequent loaders, as they're not attached to the main thread
103
+
* loaders emitting file output (e.g. `file-loader`) - the time taken in outputting the actual file is not included in the running time of the loader
104
+
105
+
These are restrictions from technical limitations - ideally we would find solutions to these problems before removing the _(experimental)_ flag on this options
0 commit comments