We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a1bcff commit b863851Copy full SHA for b863851
lib/Compilation.js
@@ -21,6 +21,7 @@ const ModuleTemplate = require("./ModuleTemplate");
21
const Dependency = require("./Dependency");
22
const ChunkRenderError = require("./ChunkRenderError");
23
const CachedSource = require("webpack-sources").CachedSource;
24
+const Stats = require("./Stats");
25
26
function byId(a, b) {
27
if(a.id < b.id) return -1;
@@ -81,6 +82,10 @@ class Compilation extends Tapable {
81
82
this.dependencyTemplates = new Map();
83
}
84
85
+ getStats() {
86
+ return new Stats(this);
87
+ }
88
+
89
templatesPlugin(name, fn) {
90
this.mainTemplate.plugin(name, fn);
91
this.chunkTemplate.plugin(name, fn);
0 commit comments