We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c38e3ef commit d534603Copy full SHA for d534603
1 file changed
lib/dependencies/PrefetchDependency.js
@@ -2,13 +2,17 @@
2
MIT License http://www.opensource.org/licenses/mit-license.php
3
Author Tobias Koppers @sokra
4
*/
5
-var ModuleDependency = require("./ModuleDependency");
+"use strict";
6
+const ModuleDependency = require("./ModuleDependency");
7
-function PrefetchDependency(request) {
8
- ModuleDependency.call(this, request);
+class PrefetchDependency extends ModuleDependency {
9
+ constructor(request) {
10
+ super(request);
11
+ }
12
+
13
+ get type() {
14
+ return "prefetch";
15
16
}
-module.exports = PrefetchDependency;
17
-PrefetchDependency.prototype = Object.create(ModuleDependency.prototype);
-PrefetchDependency.prototype.constructor = PrefetchDependency;
-PrefetchDependency.prototype.type = "prefetch";
18
+module.exports = PrefetchDependency;
0 commit comments